Function at 0x5904a700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59153a2e
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0xbc
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x5904a72d
mov dword [eax], 0
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5904a74f
push str.LogMail_ecspc__
push str.Winncap
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x10
mov ebx, dword [esp + 0xdc]
mov ebp, dword [esp + 0xe0]
mov esi, ebx
mov dword [esp + 0x78], ebp
test ebx, ebx
mov dword [esp + 0x64], esi
je 0x5904afcf
test ebp, ebp
je 0x5904afcf
mov edi, str.Cookie:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Cookie:
push ebp
push ebx
call fcn.5900d550
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5904a7b6
mov eax, dword [esp + 0xe4]
push eax
push 0
push 0
push ebp
push ebx
call fcn.590135e0
add esp, 0x14
jmp 0x5904afcf
push 0x5918a2d4
push ebp
push ebx
call fcn.5900f7b0
mov edx, eax
add esp, 0xc
cmp edx, 0xffffffff
je 0x5904afcf
mov edi, 0x5918a2d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x591638c0]
not ecx
dec ecx
mov dword [esp + 0x30], eax
add edx, ecx
add ebx, edx
sub ebp, edx
mov dword [esp + 0xd4], 0
mov dword [esp + 0x10], eax
mov byte [esp + 0xd4], 1
mov dword [esp + 0x14], eax
mov byte [esp + 0xd4], 2
mov dword [esp + 0x20], eax
mov byte [esp + 0xd4], 3
mov dword [esp + 0x1c], eax
mov byte [esp + 0xd4], 4
mov dword [esp + 0x24], eax
mov byte [esp + 0xd4], 5
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xd4], 6
call fcn.590acfe0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 7
call fcn.590acfe0
mov ecx, dword [0x591638c0]
mov byte [esp + 0xd4], 8
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x20]
mov byte [esp + 0xd4], 9
mov eax, dword [edx - 8]
test eax, eax
jne 0x5904ae44
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5904ae44
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x5904ae44
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x5904ae44
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5904ae44
lea edi, [ebp + 1]
push edi
call fcn.5913e1e0
mov esi, eax
add esp, 4
test esi, esi
je 0x5904ad3f
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push ebx
rep stosb byte es:[edi], al
push esi
call fcn.5908b460
add esp, 8
mov ecx, esp
mov dword [esp + 0x60], esp
push esi
call fcn.590a19b0
lea eax, [esp + 0x5c]
mov byte [esp + 0xd8], 9
push eax
call fcn.5900b260
add esp, 8
mov ecx, dword [0x591638c0]
mov byte [esp + 0xd4], 0xb
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x58]
push 0xfde9
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0xdc], 0xc
call fcn.590abac0
push esi
call fcn.5913e209
add esp, 4
lea ecx, [esp + 0x9c]
call fcn.59105050
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x9c]
push eax
mov byte [esp + 0xd8], 0xd
call fcn.59105db0
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.59024160
add esp, 8
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xd4], 0xe
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5904a9a7
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x34]
call fcn.590a77f0
lea edx, [esp + 0x9c]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.590241b0
add esp, 8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd8], 0xf
call fcn.590a77f0
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0xe
call fcn.590a7660
lea ecx, [esp + 0x60]
push 0
lea edx, [esp + 0xa0]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.59024200
add esp, 0x10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 0x10
call fcn.590a77f0
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0xe
call fcn.590a7660
mov eax, dword [esp + 0x60]
test eax, eax
je 0x5904aa98
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.590a77f0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.5900b3f0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0x11
push ecx
lea ecx, [esp + 0x14]
call fcn.590a77f0
lea edx, [esp + 0x2c]
push edx
call fcn.5900c1c0
add esp, 4
test eax, eax
jne 0x5904aa87
lea ecx, [esp + 0x14]
call fcn.590a73d0
lea ecx, [esp + 0x10]
call fcn.590a73d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0xe
call fcn.590a7660
lea ecx, [esp + 0x8c]
call fcn.590b4e60
lea ecx, [esp + 0x48]
mov byte [esp + 0xd4], 0x12
call fcn.590acfe0
lea eax, [esp + 0x8c]
push 0
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0xa4]
push ecx
push edx
mov byte [esp + 0xe4], 0x13
call fcn.59024370
mov eax, dword [esp + 0x5c]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x5904ac04
mov bl, 0x16
mov eax, dword [esp + 0x48]
mov edx, dword [eax + esi*4]
lea ecx, [eax + esi*4]
mov eax, dword [edx - 8]
test eax, eax
je 0x5904abf7
push 0x5c
call fcn.590a8810
mov ecx, dword [esp + 0x48]
inc eax
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [ecx + esi*4]
call fcn.590a9950
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0xd8], 0x14
call fcn.590a1b80
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd4], bl
call fcn.590a7660
lea edx, [esp + 0x40]
push 0x59189be8
push edx
call fcn.590593f0
add esp, 8
mov eax, dword [esp + 0xe4]
mov byte [esp + 0xd4], 0x17
test eax, eax
jne 0x5904ab75
mov eax, dword [esp + 0x40]
push eax
call fcn.5900f670
add esp, 4
test eax, eax
je 0x5904abd6
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x30]
call fcn.590a6d60
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xdc], 0x18
call fcn.590ad5f0
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x30]
call fcn.590a79c0
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x84]
call fcn.590ad5f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0x17
call fcn.590a7660
lea ecx, [esp + 0x40]
mov byte [esp + 0xd4], bl
call fcn.590a22e0
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0x13
call fcn.590a22e0
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x5904aaec
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
call fcn.590b4e80
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
call fcn.590ad050
lea ecx, [esp + 0x8c]
push 1
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.59024370
mov eax, dword [esp + 0x5c]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x5904ac9a
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + esi*4]
lea eax, [ecx + esi*4]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x5904ac91
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 8]
test edx, edx
jne 0x5904ac72
push eax
lea ecx, [esp + 0x1c]
call fcn.590a77f0
jmp 0x5904ac91
push 0x59188548
lea ecx, [esp + 0x1c]
call fcn.590a82b0
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x18]
lea eax, [edx + esi*4]
push eax
call fcn.590a8310
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x5904ac4a
lea ecx, [esp + 0x20]
lea edx, [esp + 0x9c]
push ecx
push edx
call fcn.59024710
lea eax, [esp + 0x24]
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.590247a0
lea edx, [esp + 0x34]
lea eax, [esp + 0xac]
push edx
push eax
call fcn.59024830
add esp, 0x18
lea ecx, [esp + 0x48]
mov byte [esp + 0xd4], 0x12
call fcn.590acff0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 0xe
call fcn.590b4e70
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd4], 0xd
call fcn.590a7660
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd4], 0xc
call fcn.591050e0
lea ecx, [esp + 0x44]
mov byte [esp + 0xd4], 0xb
call fcn.590a7660
lea ecx, [esp + 0x58]
mov byte [esp + 0xd4], 9
call fcn.590a22e0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x5904ae05
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x5904ae05
push str._r_n_r_n
lea ecx, [esp + 0x14]
call fcn.590a82b0
push str._____________________________r_n
lea ecx, [esp + 0x14]
call fcn.590a82b0
push str.Attach_file_from_network_hd:
lea ecx, [esp + 0x14]
call fcn.590a82b0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.590a8310
push 0x59189aac
lea ecx, [esp + 0x14]
call fcn.590a82b0
push str.____________________________
lea ecx, [esp + 0x14]
call fcn.590a82b0
push str._r_n_r_n
lea ecx, [esp + 0x18]
call fcn.590a82b0
push str._____________________________br_
lea ecx, [esp + 0x18]
call fcn.590a82b0
push str.Attach_file_from_network_hd:
lea ecx, [esp + 0x18]
call fcn.590a82b0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.590a8310
push str._br_
lea ecx, [esp + 0x18]
call fcn.590a82b0
push str.____________________________
lea ecx, [esp + 0x18]
call fcn.590a82b0
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
test eax, eax
jne 0x5904ae40
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5904ae40
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x5904ae40
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x5904ae40
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5904af22
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x5904ae5a
mov dword [eax], 1
jmp 0x5904af22
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.590593f0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x84]
push 1
lea eax, [esp + 0x74]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
mov byte [esp + 0x108], 0x19
call fcn.5900c510
add esp, 0x34
test eax, eax
je 0x5904af11
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x38]
push edi
push esi
push eax
call fcn.5900c300
add esp, 0xc
test eax, eax
je 0x5904af11
mov eax, dword [esp + 0x14]
push 0
push 0
lea ecx, [esp + 0x84]
push 0
lea edx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
push 2
push 1
push ecx
push edi
push esi
call fcn.5900e5d0
add esp, 0x44
lea ecx, [esp + 0x38]
mov byte [esp + 0xd4], 9
call fcn.590a22e0
lea ecx, [esp + 0x18]
mov byte [esp + 0xd4], 8
call fcn.590a7660
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 7
call fcn.590acff0
lea ecx, [esp + 0x68]
mov byte [esp + 0xd4], 6
call fcn.590acff0
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 5
call fcn.590a7660
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 4
call fcn.590a7660
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 3
call fcn.590a7660
lea ecx, [esp + 0x20]
mov byte [esp + 0xd4], 2
call fcn.590a7660
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call fcn.590a7660
lea ecx, [esp + 0x10]
mov byte [esp + 0xd4], 0
call fcn.590a7660
lea ecx, [esp + 0x30]
mov dword [esp + 0xd4], 0xffffffff
call fcn.590a7660
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc8
ret