Function at 0x590c1d50
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59147184
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 1
mov esi, ecx
push eax
call fcn.590c78c0
mov edi, eax
or ebp, 0xffffffff
add esp, 8
cmp edi, ebp
jne 0x590c1d90
push 0x59184aa8
jmp 0x590c212f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
mov dword [esp + 0x1c], eax
jne 0x590c1dba
push 0x59184d80
call fcn.590c99d0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x590c2137
mov ecx, dword [esi + 0xa8]
add ecx, eax
cmp ecx, 0x6400000
jbe 0x590c1de3
push 0x59184d64
call fcn.590c99d0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x590c2137
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x9c]
call fcn.590c9540
test eax, eax
jne 0x590c1f85
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x14]
push edx
call fcn.590c94a0
mov eax, dword [eax]
push str.text_plain
push eax
mov dword [esp + 0x30], 0
call fcn.5907da38
add esp, 8
test eax, eax
je 0x590c1e5f
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x10]
push eax
call fcn.590c94a0
mov eax, dword [eax]
push str.text_html
push eax
call fcn.5907da38
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.5909a410
test bl, bl
je 0x590c1e5f
mov bl, 1
jmp 0x590c1e61
xor bl, bl
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.5909a410
test bl, bl
je 0x590c1eb2
mov ecx, dword [esi + 0x9c]
push str.text_plain
call fcn.590c94c0
mov ecx, dword [esi + 0x9c]
push str.UTF_8
call fcn.590c92a0
mov ecx, dword [esi + 0x9c]
push str.base64
call fcn.590c94f0
mov ecx, dword [esi + 0x9c]
push 0x591959c4
call fcn.590c8770
push 0x5c
call fcn.5912c500
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x28], 1
je 0x590c1ed7
mov ecx, eax
call fcn.590c8110
mov ebx, eax
jmp 0x590c1ed9
xor ebx, ebx
push 0x59184ca8
mov ecx, ebx
mov dword [esp + 0x2c], ebp
call fcn.590c94c0
push 0
push 0
mov ecx, ebx
call fcn.590c8cf0
mov ecx, dword [esi + 0x9c]
push ecx
mov ecx, ebx
call fcn.590c9550
push 0x5c
call fcn.5912c500
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x28], 2
je 0x590c1f27
mov ecx, eax
call fcn.590c8110
mov edi, eax
jmp 0x590c1f29
xor edi, edi
push str.multipart_mixed
mov ecx, edi
mov dword [esp + 0x2c], ebp
call fcn.590c94c0
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.590c8c70
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x30], 3
call fcn.590c8cf0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.5909a410
push str.This_is_a_multi_part_message_in_MIME_format.
mov ecx, edi
call fcn.590c8770
push ebx
mov ecx, edi
mov dword [esi + 0x9c], edi
call fcn.590c9550
jmp 0x590c208b
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
call fcn.590c94a0
mov eax, dword [eax]
push 0x59184ca8
push eax
call fcn.5907da38
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.5909a410
test bl, bl
je 0x590c2055
mov ecx, dword [esi + 0x9c]
push 0x591959c4
call fcn.590c8770
push 0x5c
call fcn.5912c500
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x28], 4
je 0x590c1ff0
mov ecx, eax
call fcn.590c8110
mov edi, eax
jmp 0x590c1ff2
xor edi, edi
push str.multipart_mixed
mov ecx, edi
mov dword [esp + 0x2c], ebp
call fcn.590c94c0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.590c8c70
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x30], 5
call fcn.590c8cf0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.5909a410
push str.This_is_a_multi_part_message_in_MIME_format.
mov ecx, edi
call fcn.590c8770
mov edx, dword [esi + 0x9c]
mov ecx, edi
push edx
call fcn.590c9550
mov dword [esi + 0x9c], edi
jmp 0x590c208b
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x18]
push eax
call fcn.590c94a0
mov eax, dword [eax]
push str.multipart_mixed
push eax
call fcn.5907da38
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.5909a410
test bl, bl
je 0x590c212a
push 0x5c
call fcn.5912c500
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x28], 6
je 0x590c20b0
mov ecx, eax
call fcn.590c8110
mov edi, eax
jmp 0x590c20b2
xor edi, edi
push str.application_octet_stream
mov ecx, edi
mov dword [esp + 0x2c], ebp
call fcn.590c94c0
push str.base64
mov ecx, edi
call fcn.590c94f0
push str.attachment
mov ecx, edi
call fcn.590c9500
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, edi
call fcn.590c92d0
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x590c2105
push ebx
call fcn.5907c6fd
add esp, 4
test eax, eax
je 0x590c2105
push 0
push ebx
mov ecx, edi
call fcn.590c9470
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xa8]
add ecx, edx
push edi
mov dword [esi + 0xa8], ecx
mov ecx, dword [esi + 0x9c]
call fcn.590c9550
mov eax, 1
jmp 0x590c2139
push 0x59184c9c
call fcn.590c99d0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8