Function at 0x590d0490
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5915969f
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 1
mov esi, ecx
push eax
call fcn.590d6500
mov edi, eax
or ebp, 0xffffffff
add esp, 8
cmp edi, ebp
jne 0x590d04d0
push 0x5919c718
jmp 0x590d09d2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x590d04fa
push 0x5919c9f0
call fcn.590d8870
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x590d09da
mov ecx, dword [esi + 0xa8]
add ecx, eax
cmp ecx, 0x6400000
jbe 0x590d0523
push 0x5919c9d4
call fcn.590d8870
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x590d09da
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x9c]
call fcn.590d81d0
test eax, eax
jne 0x590d06c5
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x14]
push edx
call fcn.590d8110
mov eax, dword [eax]
push str.text_plain
push eax
mov dword [esp + 0x2c], 0
call fcn.59089858
add esp, 8
test eax, eax
je 0x590d059f
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x10]
push eax
call fcn.590d8110
mov eax, dword [eax]
push str.text_html
push eax
call fcn.59089858
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.590a6240
test bl, bl
je 0x590d059f
mov bl, 1
jmp 0x590d05a1
xor bl, bl
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.590a6240
test bl, bl
je 0x590d05f2
mov ecx, dword [esi + 0x9c]
push str.text_plain
call fcn.590d8130
mov ecx, dword [esi + 0x9c]
push str.UTF_8
call fcn.590d7f10
mov ecx, dword [esi + 0x9c]
push str.base64
call fcn.590d8160
mov ecx, dword [esi + 0x9c]
push 0x591ad730
call fcn.590d73e0
push 0x5c
call fcn.5913d2d0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 1
je 0x590d0617
mov ecx, eax
call fcn.590d6d50
mov ebx, eax
jmp 0x590d0619
xor ebx, ebx
push 0x5919c918
mov ecx, ebx
mov dword [esp + 0x28], ebp
call fcn.590d8130
push 0
push 0
mov ecx, ebx
call fcn.590d7960
mov ecx, dword [esi + 0x9c]
push ecx
mov ecx, ebx
call fcn.590d81e0
push 0x5c
call fcn.5913d2d0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 2
je 0x590d0667
mov ecx, eax
call fcn.590d6d50
mov edi, eax
jmp 0x590d0669
xor edi, edi
push str.multipart_mixed
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.590d8130
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.590d78e0
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x2c], 3
call fcn.590d7960
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.590a6240
push str.This_is_a_multi_part_message_in_MIME_format.
mov ecx, edi
call fcn.590d73e0
push ebx
mov ecx, edi
mov dword [esi + 0x9c], edi
call fcn.590d81e0
jmp 0x590d07cb
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
call fcn.590d8110
mov eax, dword [eax]
push 0x5919c918
push eax
call fcn.59089858
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.590a6240
test bl, bl
je 0x590d0795
mov ecx, dword [esi + 0x9c]
push 0x591ad730
call fcn.590d73e0
push 0x5c
call fcn.5913d2d0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 4
je 0x590d0730
mov ecx, eax
call fcn.590d6d50
mov edi, eax
jmp 0x590d0732
xor edi, edi
push str.multipart_mixed
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.590d8130
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.590d78e0
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x2c], 5
call fcn.590d7960
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.590a6240
push str.This_is_a_multi_part_message_in_MIME_format.
mov ecx, edi
call fcn.590d73e0
mov edx, dword [esi + 0x9c]
mov ecx, edi
push edx
call fcn.590d81e0
mov dword [esi + 0x9c], edi
jmp 0x590d07cb
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
call fcn.590d8110
mov eax, dword [eax]
push str.multipart_mixed
push eax
call fcn.59089858
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.590a6240
test bl, bl
je 0x590d09cd
push 0x5c
call fcn.5913d2d0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 6
je 0x590d07f4
mov ecx, eax
call fcn.590d6d50
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x590d0800
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
push str.application_octet_stream
mov ecx, ebx
mov dword [esp + 0x28], ebp
call fcn.590d8130
push str.base64
mov ecx, ebx
call fcn.590d8160
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.590d7f40
mov edi, dword [esp + 0x30]
test edi, edi
je 0x590d0847
push edi
call fcn.5908850e
add esp, 4
test eax, eax
je 0x590d0847
push 0
push edi
mov ecx, ebx
call fcn.590d80e0
mov edi, dword [esp + 0x34]
test edi, edi
je 0x590d099c
push edi
call fcn.5908850e
add esp, 4
test eax, eax
je 0x590d099c
push edi
mov ecx, ebx
call fcn.590d81c0
mov ecx, dword [esi + 0x9c]
call fcn.590d81d0
xor ebp, ebp
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x590d08d6
mov ecx, dword [esi + 0x9c]
push ebp
call fcn.590d84f0
mov edi, eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.590d8110
mov eax, dword [eax]
push str.multipart_related
push eax
call fcn.59089858
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.590a6240
test bl, bl
jne 0x590d08c8
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, eax
jl 0x590d0881
jmp 0x590d08d2
test edi, edi
mov ecx, edi
jne 0x590d098b
mov ebx, dword [esp + 0x10]
push 0x5c
call fcn.5913d2d0
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x24], 7
je 0x590d08fb
mov ecx, eax
call fcn.590d6d50
mov ebp, eax
jmp 0x590d08fd
xor ebp, ebp
push str.multipart_related
mov ecx, ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.590d8130
push 2
push 0
mov ecx, ebp
call fcn.590d7960
mov eax, dword [esp + 0x2c]
lea edi, [eax - 1]
test edi, edi
jl 0x590d0975
mov ecx, dword [esi + 0x9c]
push edi
call fcn.590d84f0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.590d8170
mov eax, dword [eax]
push str.attachment
push eax
call fcn.59089858
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
setne bl
call fcn.590a6240
test bl, bl
je 0x590d096e
mov ecx, dword [esi + 0x9c]
push ebp
push edi
call fcn.590d8500
dec edi
jns 0x590d0927
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x9c]
push ebp
push 0
call fcn.590d8350
test ebp, ebp
mov ecx, ebp
jne 0x590d098f
jmp 0x590d09da
mov ebx, dword [esp + 0x10]
push ebx
call fcn.590d81e0
mov eax, 1
jmp 0x590d09dc
push str.attachment
mov ecx, ebx
call fcn.590d8190
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0xa8]
add ecx, edx
push ebx
mov dword [esi + 0xa8], ecx
mov ecx, dword [esi + 0x9c]
call fcn.590d81e0
mov eax, 1
jmp 0x590d09dc
push 0x5919c90c
call fcn.590d8870
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc