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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59153ae7
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb0]
test esi, esi
push edi
je 0x5904b020
mov dword [esi], 0
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5904b042
push str.LogMail_Espec_attach__
push str.Winncap
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x10
mov ebp, dword [esp + 0xac]
mov ebx, dword [esp + 0xb0]
test ebp, ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x54], ebx
je 0x5904b941
test ebx, ebx
je 0x5904b941
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 ebx
push ebp
call fcn.5900d550
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5904b0c4
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5904b0ae
push str.LogMail_Espec_attach_2__
push str.Winncap
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x10
push esi
push 0
push 0
push 0
push ebx
push ebp
call fcn.59016830
add esp, 0x18
jmp 0x5904b963
mov eax, dword [0x591638c0]
mov dword [esp + 0x20], eax
push str.Content_Type:_multipart_form_data__boundary
push ebx
push ebp
mov dword [esp + 0xb0], 0
call fcn.5900f7b0
mov edx, eax
add esp, 0xc
cmp edx, 0xffffffff
jne 0x5904b118
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5904b92b
push str.LogMail_Espec_attach_5__
push str.Winncap
push edx
push 0x591ae15c
call fcn.590851e0
add esp, 0x10
jmp 0x5904b92b
mov edi, str.Content_Type:_multipart_form_data__boundary
or ecx, 0xffffffff
xor eax, eax
push 0x5918986c
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
mov ecx, ebx
sub ecx, edx
lea esi, [edx + ebp]
push ecx
push esi
mov dword [esp + 0x58], esi
call fcn.5900f7b0
or edi, 0xffffffff
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x44], eax
jne 0x5904b184
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5904b16f
push str.LogMail_Espec_attach_6__
push str.Winncap
push edi
push 0x591ae15c
call fcn.590851e0
add esp, 0x10
lea ecx, [esp + 0x20]
mov dword [esp + 0xa4], edi
call fcn.590a7660
jmp 0x5904b963
push 0x5918a2d4
push ebx
push ebp
call fcn.5900f7b0
mov edx, eax
add esp, 0xc
cmp edx, edi
jne 0x5904b1a9
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5904b16f
push str.LogMail_Espec_attach_7__
jmp 0x5904b15c
mov edi, 0x5918a2d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x48], eax
add edx, ecx
mov ecx, dword [esp + 0x44]
add ebp, edx
sub ebx, edx
mov dword [esp + 0x10], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x48]
push edx
push eax
push ecx
push esi
push ebx
push ebp
call fcn.5900d4b0
mov esi, eax
mov eax, dword [0x591638c0]
add esp, 0x18
mov dword [esp + 0x14], eax
mov byte [esp + 0xa4], 1
mov dword [esp + 0x18], eax
mov byte [esp + 0xa4], 2
mov dword [esp + 0x3c], eax
mov byte [esp + 0xa4], 3
mov dword [esp + 0x34], eax
mov byte [esp + 0xa4], 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0xa4], 5
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xa4], 6
call fcn.590acfe0
lea ecx, [esp + 0x78]
mov byte [esp + 0xa4], 7
call fcn.590acfe0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xa4], 8
call fcn.590b4e60
mov edx, dword [0x591638c0]
mov byte [esp + 0xa4], 9
mov dword [esp + 0x30], edx
test esi, esi
mov byte [esp + 0xa4], 0xa
je 0x5904b5e9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5904b5e9
mov eax, dword [0x591638bc]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
push esi
mov byte [esp + 0xb0], 0xb
call fcn.5900f6b0
add esp, 0xc
test eax, eax
jne 0x5904b2cc
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
jmp 0x5904b5c4
mov ecx, dword [esp + 0x10]
push 0x5918a2d4
push ecx
push esi
call fcn.5900f7b0
mov edx, eax
add esp, 0xc
cmp edx, 0xffffffff
jne 0x5904b2ff
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x10]
lea eax, [esp + 0x48]
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
jmp 0x5904b5c4
mov edi, 0x5918a2d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
add edx, ecx
sub eax, edx
mov dword [esp + 0x58], edx
test eax, eax
jle 0x5904b5b0
lea ecx, [esp + 0x1c]
call fcn.590a34e0
push str.UPLOAD
lea ecx, [esp + 0x20]
call fcn.590a3460
cmp eax, 0xffffffff
jne 0x5904b368
push str.FILE
lea ecx, [esp + 0x20]
call fcn.590a3460
cmp eax, 0xffffffff
jne 0x5904b368
push str.ATTACH
lea ecx, [esp + 0x20]
call fcn.590a3460
cmp eax, 0xffffffff
je 0x5904b5b0
mov edx, dword [esp + 0x10]
push str.filename_
push edx
push esi
call fcn.5900f7b0
mov edx, eax
add esp, 0xc
cmp edx, 0xffffffff
je 0x5904b5b0
mov edi, str.filename_
or ecx, 0xffffffff
xor eax, eax
push 0x59189900
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
add edx, ecx
sub eax, edx
lea edi, [edx + esi]
push eax
push edi
call fcn.5900f7b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x5904b5b0
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.590a1d90
mov ecx, dword [esp + 0x24]
mov byte [esp + 0xa4], 0xc
mov eax, dword [ecx - 8]
test eax, eax
je 0x5904b59f
push 0x5c
lea ecx, [esp + 0x28]
call fcn.590a3430
inc eax
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esp + 0x2c]
call fcn.590a44d0
mov eax, dword [0x591638bc]
mov byte [esp + 0xa4], 0xd
mov dword [esp + 0x60], eax
push 0x2e
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8], 0xe
call fcn.590a3430
cmp eax, 0xffffffff
je 0x5904b451
inc eax
lea ecx, [esp + 0x74]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.590a44d0
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0xf
call fcn.590a2460
lea ecx, [esp + 0x74]
mov byte [esp + 0xa4], 0xe
call fcn.590a22e0
lea edx, [esp + 0x88]
push 0x59189be8
push edx
call fcn.590593f0
add esp, 8
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8], 0x10
call fcn.590a2460
lea ecx, [esp + 0x88]
mov byte [esp + 0xa4], 0xe
call fcn.590a22e0
mov eax, dword [esp + 0xb4]
test eax, eax
jne 0x5904b4d6
mov eax, dword [esp + 0x24]
push 0x180
push 0x8101
push eax
call fcn.5908a6ad
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x5904b57d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
sub ecx, eax
add esi, eax
push ecx
push esi
push edi
call fcn.5908a4bd
push edi
call fcn.5908a3dd
add esp, 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
sub eax, edx
mov edx, dword [esp + 0x90]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.590b50a0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push eax
call fcn.590a6d60
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0xac], 0x11
call fcn.590ad5f0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.5900acb0
add esp, 8
test eax, eax
je 0x5904b548
mov eax, dword [esp + 0x38]
push 0xfde9
push eax
lea ecx, [esp + 0x48]
call fcn.590abac0
jmp 0x5904b556
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x44]
call fcn.590a79c0
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x80]
call fcn.590ad5f0
lea ecx, [esp + 0x40]
mov byte [esp + 0xa4], 0xe
call fcn.590a7660
lea ecx, [esp + 0x60]
mov byte [esp + 0xa4], 0xd
call fcn.590a22e0
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 0xc
call fcn.590a22e0
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 0xb
call fcn.590a22e0
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
push ebx
push ebp
call fcn.5900d4b0
add esp, 0x18
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0xa4], 0xa
call fcn.590a22e0
test esi, esi
jne 0x5904b27f
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x5904b6af
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5904b6af
push str._r_n_r_n
lea ecx, [esp + 0x18]
call fcn.590a82b0
push str._____________________________r_n
lea ecx, [esp + 0x18]
call fcn.590a82b0
push str.Attach_file_from_network_hd:
lea ecx, [esp + 0x18]
call fcn.590a82b0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.590a8310
push 0x59189aac
lea ecx, [esp + 0x18]
call fcn.590a82b0
push str.____________________________
lea ecx, [esp + 0x18]
call fcn.590a82b0
push str._r_n_r_n
lea ecx, [esp + 0x1c]
call fcn.590a82b0
push str._____________________________br_
lea ecx, [esp + 0x1c]
call fcn.590a82b0
push str.Attach_file_from_network_hd:
lea ecx, [esp + 0x1c]
call fcn.590a82b0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
push edx
call fcn.590a8310
push str._br_
lea ecx, [esp + 0x1c]
call fcn.590a82b0
push str.____________________________
lea ecx, [esp + 0x1c]
call fcn.590a82b0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5904b719
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x5904b719
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 8]
test eax, eax
jne 0x5904b719
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5904b719
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x5904b719
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x5904b719
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5904b87e
push str.LogMail_Espec_attach_8__
push str.Winncap
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x10
jmp 0x5904b87e
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x5904b72f
mov dword [eax], 1
jmp 0x5904b87e
lea edx, [esp + 0x50]
push 0
push edx
call fcn.590593f0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x80]
push 1
lea ecx, [esp + 0x70]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
mov byte [esp + 0xd8], 0x12
call fcn.5900c510
mov esi, eax
mov eax, dword [0x591ae1c8]
add esp, 0x34
test eax, eax
je 0x5904b7a7
push esi
push str.LogMail_126_attach_9____lu_
push str.Winncap
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
test esi, esi
je 0x5904b7c4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
call fcn.5900c300
add esp, 0xc
mov esi, eax
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5904b7e7
push esi
push str.LogMail_126_attach_10____lu_
push str.Winncap
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
test esi, esi
je 0x5904b84a
push 0
lea ecx, [esp + 0x90]
push 0
lea edx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x70]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x8c]
push 2
push 1
push edx
push eax
push ecx
call fcn.5900e5d0
add esp, 0x44
mov esi, eax
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5904b86d
push esi
push str.LogMail_126_attach_11____lu_
push str.Winncap
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
lea ecx, [esp + 0x50]
mov byte [esp + 0xa4], 0xa
call fcn.590a22e0
lea ecx, [esp + 0x30]
mov byte [esp + 0xa4], 9
call fcn.590a7660
lea ecx, [esp + 0x8c]
mov byte [esp + 0xa4], 8
call fcn.590b4e70
lea ecx, [esp + 0x78]
mov byte [esp + 0xa4], 7
call fcn.590acff0
lea ecx, [esp + 0x64]
mov byte [esp + 0xa4], 6
call fcn.590acff0
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4], 5
call fcn.590a7660
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa4], 4
call fcn.590a7660
lea ecx, [esp + 0x34]
mov byte [esp + 0xa4], 3
call fcn.590a7660
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 2
call fcn.590a7660
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 1
call fcn.590a7660
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 0
call fcn.590a7660
lea ecx, [esp + 0x20]
mov dword [esp + 0xa4], 0xffffffff
call fcn.590a7660
jmp 0x5904b963
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5904b963
push str.LogMail_Espec_attach_1__
push str.Winncap
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x10
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret