Function at 0x452760
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465334
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1c4
mov eax, dword [0x48602c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x128], 1
mov byte [ebp - 0x120], 0
push 0x103
push 0
lea eax, [ebp - 0x11f]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], 0
push 0x48
call fcn.0043ae6c
add esp, 4
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c0], 0
je 0x452815
mov ecx, dword [ebp - 0x1c0]
push ecx
call fcn.00437760
mov dword [ebp - 0x1cc], eax
jmp 0x45281f
mov dword [ebp - 0x1cc], 0
mov edx, dword [ebp - 0x1cc]
mov dword [ebp - 0x1bc], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.AomeiBRMailConfig.xml
lea edx, [ebp - 0x120]
push edx
call sub.MSVCR80.dll_strcat
add esp, 8
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x128], ecx
cmp dword [ebp - 0x128], 0
jne 0x4528b7
push 0x56d
push 0x476508
call fcn.0044dfd0
add esp, 8
push eax
push str.GetFileAttributesA_szMailCfg__INVALID_FILE_ATTRIBUTES
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401020
add esp, 0xc
jmp 0x452ddc
mov dword [ebp - 4], 1
push 1
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x124]
push eax
call fcn.00437820
mov byte [ebp - 0x1cd], al
movzx ecx, byte [ebp - 0x1cd]
mov dword [ebp - 0x128], ecx
jmp 0x452972
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x128], ecx
cmp dword [ebp - 0x128], 0
jne 0x4529ba
push 0x57a
push 0x476550
call fcn.0044dfd0
add esp, 8
push eax
push 0x476560
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401020
add esp, 0xc
jmp 0x452ddc
mov ecx, dword [ebp - 0x124]
call fcn.004077c0
mov dword [ebp - 0x130], eax
xor edx, edx
cmp dword [ebp - 0x130], 0
setne dl
mov dword [ebp - 0x128], edx
cmp dword [ebp - 0x128], 0
jne 0x452a12
push 0x57d
push 0x476568
call fcn.0044dfd0
add esp, 8
push eax
push str.pMailConf_NULL
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401020
add esp, 0xc
jmp 0x452ddc
push 0x476588
mov ecx, dword [ebp - 0x130]
call fcn.004077a0
mov dword [ebp - 0x134], eax
xor eax, eax
cmp dword [ebp - 0x134], 0
setne al
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x452a6f
push 0x57f
push 0x476590
call fcn.0044dfd0
add esp, 8
push eax
push str.pElement_NULL
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401020
add esp, 0xc
jmp 0x452ddc
push 0x55bc
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov ebx, str.SendMail
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov ebx, str.SendSmtpPass
mov eax, dword [ebp - 0x134]
call fcn.004373a0
push eax
push 0x80
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
call fcn.0044ebf0
add esp, 0xc
push 0x80
mov ecx, dword [ebp + 8]
add ecx, 0x30
push ecx
call fcn.0044e240
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x452b0a
push 0x587
push 0x4765cc
call fcn.0044dfd0
add esp, 8
push eax
push str.Decrypt_Mail.SendSmtpPass__sizeof_Mail.SendSmtpPass__
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401020
add esp, 0xc
jmp 0x452ddc
mov edx, dword [ebp + 8]
add edx, 4
push edx
mov ebx, str.CancelRequired
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov ebx, str.SendPeople
mov eax, dword [ebp - 0x134]
call fcn.004373a0
push eax
push 0x80
mov eax, dword [ebp + 8]
add eax, 0xb0
push eax
call fcn.0044ebf0
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
mov ebx, str.MailSendType
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov edx, dword [ebp + 8]
add edx, 8
push edx
mov ebx, str.FailedSendMail
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
mov ebx, str.SaveValue
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov ebx, str.ReceiveAddress
mov eax, dword [ebp - 0x134]
call fcn.004373a0
push eax
push 0x80
mov ecx, dword [ebp + 8]
add ecx, 0x130
push ecx
call fcn.0044ebf0
add esp, 0xc
mov ebx, str.SendSmtpUser
mov eax, dword [ebp - 0x134]
call fcn.004373a0
push eax
push 0x80
mov edx, dword [ebp + 8]
add edx, 0x1b0
push edx
call fcn.0044ebf0
add esp, 0xc
push 0x80
mov eax, dword [ebp + 8]
add eax, 0x1b0
push eax
call fcn.0044e240
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x452c2e
push 0x590
push 0x47667c
call fcn.0044dfd0
add esp, 8
push eax
push str.Decrypt_Mail.SendSmtpUser__sizeof_Mail.SendSmtpUser__
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401020
add esp, 0xc
jmp 0x452ddc
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
mov ebx, str.SendServerNumber
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
mov ebx, str.Encryption
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ebx, str.SendMailOff
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov ebx, str.SendAddress
mov eax, dword [ebp - 0x134]
call fcn.004373a0
push eax
push 0x80
mov ecx, dword [ebp + 8]
add ecx, 0x230
push ecx
call fcn.0044ebf0
add esp, 0xc
mov ebx, str.SendSmtpServerAddress
mov eax, dword [ebp - 0x134]
call fcn.004373a0
push eax
push 0x104
mov edx, dword [ebp + 8]
add edx, 0x2b0
push edx
call fcn.0044ebf0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
mov ebx, str.SendAMMail
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
mov ebx, str.AMHV_SendMode
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 5
jne 0x452da6
mov byte [ebp - 0x178], 0
push 0x3f
push 0
lea eax, [ebp - 0x177]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ebx, str.RegionCode
mov eax, dword [ebp - 0x134]
call fcn.004373a0
push eax
push 0x40
lea ecx, [ebp - 0x178]
push ecx
call fcn.0044ebf0
add esp, 0xc
mov byte [ebp - 0x1b8], 0
push 0x3f
push 0
lea edx, [ebp - 0x1b7]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ebx, str.PhoneNumber
mov eax, dword [ebp - 0x134]
call fcn.004373a0
push eax
push 0x40
lea eax, [ebp - 0x1b8]
push eax
call fcn.0044ebf0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x130], 0
lea edx, [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x178]
push eax
push 0x476748
mov ecx, dword [ebp + 8]
add ecx, 0x130
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
mov edx, dword [ebp + 8]
add edx, 0x24
push edx
mov ebx, str.SuccessSend
mov eax, dword [ebp - 0x134]
call fcn.004373c0
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
mov ebx, str.SMTPAuthentication
mov eax, dword [ebp - 0x134]
call fcn.004373c0
xor ecx, ecx
jne 0x452a82
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043ad38
mov esp, ebp
pop ebp
ret