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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59152c2e
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 0x5904ae3d
mov dword [eax], 0
mov eax, dword [0x591ac718]
test eax, eax
je 0x5904ae5f
push str.LogMail_ecspc__
push str.Winncap
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
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 0x5904b6df
test ebp, ebp
je 0x5904b6df
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.5900d6d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5904aec6
mov eax, dword [esp + 0xe4]
push eax
push 0
push 0
push ebp
push ebx
call fcn.590138f0
add esp, 0x14
jmp 0x5904b6df
push 0x591892bc
push ebp
push ebx
call fcn.5900f930
mov edx, eax
add esp, 0xc
cmp edx, 0xffffffff
je 0x5904b6df
mov edi, 0x591892bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x59162880]
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.590abbc0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 7
call fcn.590abbc0
mov ecx, dword [0x59162880]
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 0x5904b554
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5904b554
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x5904b554
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x5904b554
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5904b554
lea edi, [ebp + 1]
push edi
call fcn.5913d2d0
mov esi, eax
add esp, 4
test esi, esi
je 0x5904b44f
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.5908a040
add esp, 8
mov ecx, esp
mov dword [esp + 0x60], esp
push esi
call fcn.590a0590
lea eax, [esp + 0x5c]
mov byte [esp + 0xd8], 9
push eax
call fcn.5900b190
add esp, 8
mov ecx, dword [0x59162880]
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.590aa6a0
push esi
call fcn.5913d2f9
add esp, 4
lea ecx, [esp + 0x9c]
call fcn.59104140
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x9c]
push eax
mov byte [esp + 0xd8], 0xd
call fcn.59104ea0
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.59024620
add esp, 8
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xd4], 0xe
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5904b0b7
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x34]
call fcn.590a63d0
lea edx, [esp + 0x9c]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.59024670
add esp, 8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd8], 0xf
call fcn.590a63d0
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0xe
call fcn.590a6240
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.590246c0
add esp, 0x10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 0x10
call fcn.590a63d0
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0xe
call fcn.590a6240
mov eax, dword [esp + 0x60]
test eax, eax
je 0x5904b1a8
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.590a63d0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.5900b2f0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0x11
push ecx
lea ecx, [esp + 0x14]
call fcn.590a63d0
lea edx, [esp + 0x2c]
push edx
call fcn.5900c340
add esp, 4
test eax, eax
jne 0x5904b197
lea ecx, [esp + 0x14]
call fcn.590a5fb0
lea ecx, [esp + 0x10]
call fcn.590a5fb0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0xe
call fcn.590a6240
lea ecx, [esp + 0x8c]
call fcn.590b3a40
lea ecx, [esp + 0x48]
mov byte [esp + 0xd4], 0x12
call fcn.590abbc0
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.59024830
mov eax, dword [esp + 0x5c]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x5904b314
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 0x5904b307
push 0x5c
call fcn.590a73f0
mov ecx, dword [esp + 0x48]
inc eax
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [ecx + esi*4]
call fcn.590a8530
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0xd8], 0x14
call fcn.590a0760
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd4], bl
call fcn.590a6240
lea edx, [esp + 0x40]
push 0x59188bd0
push edx
call fcn.59059db0
add esp, 8
mov eax, dword [esp + 0xe4]
mov byte [esp + 0xd4], 0x17
test eax, eax
jne 0x5904b285
mov eax, dword [esp + 0x40]
push eax
call fcn.5900f7f0
add esp, 4
test eax, eax
je 0x5904b2e6
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x30]
call fcn.590a5940
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xdc], 0x18
call fcn.590ac1d0
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x30]
call fcn.590a65a0
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x84]
call fcn.590ac1d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0x17
call fcn.590a6240
lea ecx, [esp + 0x40]
mov byte [esp + 0xd4], bl
call fcn.590a0ec0
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0x13
call fcn.590a0ec0
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x5904b1fc
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
call fcn.590b3a60
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
call fcn.590abc30
lea ecx, [esp + 0x8c]
push 1
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.59024830
mov eax, dword [esp + 0x5c]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x5904b3aa
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 0x5904b3a1
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 8]
test edx, edx
jne 0x5904b382
push eax
lea ecx, [esp + 0x1c]
call fcn.590a63d0
jmp 0x5904b3a1
push 0x59187530
lea ecx, [esp + 0x1c]
call fcn.590a6e90
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x18]
lea eax, [edx + esi*4]
push eax
call fcn.590a6ef0
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x5904b35a
lea ecx, [esp + 0x20]
lea edx, [esp + 0x9c]
push ecx
push edx
call fcn.59024bd0
lea eax, [esp + 0x24]
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.59024c60
lea edx, [esp + 0x34]
lea eax, [esp + 0xac]
push edx
push eax
call fcn.59024cf0
add esp, 0x18
lea ecx, [esp + 0x48]
mov byte [esp + 0xd4], 0x12
call fcn.590abbd0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 0xe
call fcn.590b3a50
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd4], 0xd
call fcn.590a6240
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd4], 0xc
call fcn.591041d0
lea ecx, [esp + 0x44]
mov byte [esp + 0xd4], 0xb
call fcn.590a6240
lea ecx, [esp + 0x58]
mov byte [esp + 0xd4], 9
call fcn.590a0ec0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x5904b515
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x5904b515
push str._r_n_r_n
lea ecx, [esp + 0x14]
call fcn.590a6e90
push str._____________________________r_n
lea ecx, [esp + 0x14]
call fcn.590a6e90
push str.Attach_file_from_network_hd:
lea ecx, [esp + 0x14]
call fcn.590a6e90
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.590a6ef0
push 0x59188a94
lea ecx, [esp + 0x14]
call fcn.590a6e90
push str.____________________________
lea ecx, [esp + 0x14]
call fcn.590a6e90
push str._r_n_r_n
lea ecx, [esp + 0x18]
call fcn.590a6e90
push str._____________________________br_
lea ecx, [esp + 0x18]
call fcn.590a6e90
push str.Attach_file_from_network_hd:
lea ecx, [esp + 0x18]
call fcn.590a6e90
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.590a6ef0
push str._br_
lea ecx, [esp + 0x18]
call fcn.590a6e90
push str.____________________________
lea ecx, [esp + 0x18]
call fcn.590a6e90
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
test eax, eax
jne 0x5904b550
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5904b550
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x5904b550
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x5904b550
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5904b632
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x5904b56a
mov dword [eax], 1
jmp 0x5904b632
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.59059db0
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.5900c690
add esp, 0x34
test eax, eax
je 0x5904b621
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x38]
push edi
push esi
push eax
call fcn.5900c480
add esp, 0xc
test eax, eax
je 0x5904b621
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.5900e750
add esp, 0x44
lea ecx, [esp + 0x38]
mov byte [esp + 0xd4], 9
call fcn.590a0ec0
lea ecx, [esp + 0x18]
mov byte [esp + 0xd4], 8
call fcn.590a6240
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 7
call fcn.590abbd0
lea ecx, [esp + 0x68]
mov byte [esp + 0xd4], 6
call fcn.590abbd0
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 5
call fcn.590a6240
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 4
call fcn.590a6240
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 3
call fcn.590a6240
lea ecx, [esp + 0x20]
mov byte [esp + 0xd4], 2
call fcn.590a6240
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call fcn.590a6240
lea ecx, [esp + 0x10]
mov byte [esp + 0xd4], 0
call fcn.590a6240
lea ecx, [esp + 0x30]
mov dword [esp + 0xd4], 0xffffffff
call fcn.590a6240
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc8
ret