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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591461fe
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 0x590455bd
mov dword [eax], 0
mov eax, dword [0x5919cca0]
test eax, eax
je 0x590455df
push str.LogMail_ecspc__
push str.Winncap
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
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 0x59045e5f
test ebp, ebp
je 0x59045e5f
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.5900d130
add esp, 0x10
cmp eax, 0xffffffff
jne 0x59045646
mov eax, dword [esp + 0xe4]
push eax
push 0
push 0
push ebp
push ebx
call fcn.59013350
add esp, 0x14
jmp 0x59045e5f
push 0x5917ae30
push ebp
push ebx
call fcn.5900f390
mov edx, eax
add esp, 0xc
cmp edx, 0xffffffff
je 0x59045e5f
mov edi, 0x5917ae30
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x59155850]
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.590a4b00
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 7
call fcn.590a4b00
mov ecx, dword [0x59155850]
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 0x59045cd4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59045cd4
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x59045cd4
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x59045cd4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59045cd4
lea edi, [ebp + 1]
push edi
call fcn.591315b0
mov esi, eax
add esp, 4
test esi, esi
je 0x59045bcf
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.59082f60
add esp, 8
mov ecx, esp
mov dword [esp + 0x60], esp
push esi
call fcn.590994d0
lea eax, [esp + 0x5c]
mov byte [esp + 0xd8], 9
push eax
call fcn.5900abf0
add esp, 8
mov ecx, dword [0x59155850]
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.590a35e0
push esi
call fcn.591315d9
add esp, 4
lea ecx, [esp + 0x9c]
call fcn.590fa350
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x9c]
push eax
mov byte [esp + 0xd8], 0xd
call fcn.590fb0b0
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.590209d0
add esp, 8
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xd4], 0xe
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59045837
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x34]
call fcn.5909f310
lea edx, [esp + 0x9c]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.59020a20
add esp, 8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd8], 0xf
call fcn.5909f310
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0xe
call fcn.5909f180
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.59020a70
add esp, 0x10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 0x10
call fcn.5909f310
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0xe
call fcn.5909f180
mov eax, dword [esp + 0x60]
test eax, eax
je 0x59045928
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.5909f310
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.5900ad50
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0x11
push ecx
lea ecx, [esp + 0x14]
call fcn.5909f310
lea edx, [esp + 0x2c]
push edx
call fcn.5900bda0
add esp, 4
test eax, eax
jne 0x59045917
lea ecx, [esp + 0x14]
call fcn.5909eef0
lea ecx, [esp + 0x10]
call fcn.5909eef0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0xe
call fcn.5909f180
lea ecx, [esp + 0x8c]
call fcn.590ab1c0
lea ecx, [esp + 0x48]
mov byte [esp + 0xd4], 0x12
call fcn.590a4b00
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.59020be0
mov eax, dword [esp + 0x5c]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x59045a94
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 0x59045a87
push 0x5c
call fcn.590a0330
mov ecx, dword [esp + 0x48]
inc eax
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [ecx + esi*4]
call fcn.590a1470
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0xd8], 0x14
call fcn.590996a0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd4], bl
call fcn.5909f180
lea edx, [esp + 0x40]
push 0x5917a758
push edx
call fcn.590543e0
add esp, 8
mov eax, dword [esp + 0xe4]
mov byte [esp + 0xd4], 0x17
test eax, eax
jne 0x59045a05
mov eax, dword [esp + 0x40]
push eax
call fcn.5900f250
add esp, 4
test eax, eax
je 0x59045a66
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x30]
call fcn.5909e880
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xdc], 0x18
call fcn.590a5110
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x30]
call fcn.5909f4e0
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x84]
call fcn.590a5110
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 0x17
call fcn.5909f180
lea ecx, [esp + 0x40]
mov byte [esp + 0xd4], bl
call fcn.59099e00
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0x13
call fcn.59099e00
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x5904597c
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
call fcn.590ab1e0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
call fcn.590a4b70
lea ecx, [esp + 0x8c]
push 1
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.59020be0
mov eax, dword [esp + 0x5c]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x59045b2a
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 0x59045b21
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 8]
test edx, edx
jne 0x59045b02
push eax
lea ecx, [esp + 0x1c]
call fcn.5909f310
jmp 0x59045b21
push 0x59179460
lea ecx, [esp + 0x1c]
call fcn.5909fdd0
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x18]
lea eax, [edx + esi*4]
push eax
call fcn.5909fe30
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x59045ada
lea ecx, [esp + 0x20]
lea edx, [esp + 0x9c]
push ecx
push edx
call fcn.59020f80
lea eax, [esp + 0x24]
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.59021010
lea edx, [esp + 0x34]
lea eax, [esp + 0xac]
push edx
push eax
call fcn.590210a0
add esp, 0x18
lea ecx, [esp + 0x48]
mov byte [esp + 0xd4], 0x12
call fcn.590a4b10
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 0xe
call fcn.590ab1d0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd4], 0xd
call fcn.5909f180
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd4], 0xc
call fcn.590fa3e0
lea ecx, [esp + 0x44]
mov byte [esp + 0xd4], 0xb
call fcn.5909f180
lea ecx, [esp + 0x58]
mov byte [esp + 0xd4], 9
call fcn.59099e00
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x59045c95
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x59045c95
push str._r_n_r_n
lea ecx, [esp + 0x14]
call fcn.5909fdd0
push str._____________________________r_n
lea ecx, [esp + 0x14]
call fcn.5909fdd0
push str.Attach_file_from_network_hd:
lea ecx, [esp + 0x14]
call fcn.5909fdd0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.5909fe30
push 0x5917a61c
lea ecx, [esp + 0x14]
call fcn.5909fdd0
push str.____________________________
lea ecx, [esp + 0x14]
call fcn.5909fdd0
push str._r_n_r_n
lea ecx, [esp + 0x18]
call fcn.5909fdd0
push str._____________________________br_
lea ecx, [esp + 0x18]
call fcn.5909fdd0
push str.Attach_file_from_network_hd:
lea ecx, [esp + 0x18]
call fcn.5909fdd0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.5909fe30
push str._br_
lea ecx, [esp + 0x18]
call fcn.5909fdd0
push str.____________________________
lea ecx, [esp + 0x18]
call fcn.5909fdd0
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
test eax, eax
jne 0x59045cd0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59045cd0
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x59045cd0
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x59045cd0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59045db2
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x59045cea
mov dword [eax], 1
jmp 0x59045db2
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.590543e0
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.5900c0f0
add esp, 0x34
test eax, eax
je 0x59045da1
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x38]
push edi
push esi
push eax
call fcn.5900bee0
add esp, 0xc
test eax, eax
je 0x59045da1
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.5900e1b0
add esp, 0x44
lea ecx, [esp + 0x38]
mov byte [esp + 0xd4], 9
call fcn.59099e00
lea ecx, [esp + 0x18]
mov byte [esp + 0xd4], 8
call fcn.5909f180
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 7
call fcn.590a4b10
lea ecx, [esp + 0x68]
mov byte [esp + 0xd4], 6
call fcn.590a4b10
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 5
call fcn.5909f180
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 4
call fcn.5909f180
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 3
call fcn.5909f180
lea ecx, [esp + 0x20]
mov byte [esp + 0xd4], 2
call fcn.5909f180
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call fcn.5909f180
lea ecx, [esp + 0x10]
mov byte [esp + 0xd4], 0
call fcn.5909f180
lea ecx, [esp + 0x30]
mov dword [esp + 0xd4], 0xffffffff
call fcn.5909f180
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc8
ret