Function at 0x1019e840
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e18df
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.101a65c0
mov edi, eax
or ebp, 0xffffffff
add esp, 8
cmp edi, ebp
jne 0x1019e880
push 0x102582a8
jmp 0x1019ed82
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x1019e8aa
push 0x10258608
call fcn.101a4f90
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1019ed8a
mov ecx, dword [esi + 0xa8]
add ecx, eax
cmp ecx, 0x6400000
jbe 0x1019e8d3
push 0x102585e8
call fcn.101a4f90
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1019ed8a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x9c]
call fcn.101a48f0
test eax, eax
jne 0x1019ea75
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x14]
push edx
call fcn.101a4830
mov eax, dword [eax]
push 0x10258464
push eax
mov dword [esp + 0x2c], 0
call fcn.1009a0c9
add esp, 8
test eax, eax
je 0x1019e94f
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x10]
push eax
call fcn.101a4830
mov eax, dword [eax]
push str.text_html
push eax
call fcn.1009a0c9
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100cef50
test bl, bl
je 0x1019e94f
mov bl, 1
jmp 0x1019e951
xor bl, bl
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.100cef50
test bl, bl
je 0x1019e9a2
mov ecx, dword [esi + 0x9c]
push 0x10258464
call fcn.101a4850
mov ecx, dword [esi + 0x9c]
push str.UTF_8
call fcn.101a4630
mov ecx, dword [esi + 0x9c]
push str.base64
call fcn.101a4880
mov ecx, dword [esi + 0x9c]
push 0x102704c8
call fcn.101a3ac0
push 0x5c
call fcn.1006625a
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 1
je 0x1019e9c7
mov ecx, eax
call fcn.101a3430
mov ebx, eax
jmp 0x1019e9c9
xor ebx, ebx
push 0x10258520
mov ecx, ebx
mov dword [esp + 0x28], ebp
call fcn.101a4850
push 0
push 0
mov ecx, ebx
call fcn.101a4040
mov ecx, dword [esi + 0x9c]
push ecx
mov ecx, ebx
call fcn.101a4900
push 0x5c
call fcn.1006625a
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 2
je 0x1019ea17
mov ecx, eax
call fcn.101a3430
mov edi, eax
jmp 0x1019ea19
xor edi, edi
push str.multipart_mixed
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.101a4850
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.101a3fc0
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x2c], 3
call fcn.101a4040
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.100cef50
push str.This_is_a_multi_part_message_in_MIME_format.
mov ecx, edi
call fcn.101a3ac0
push ebx
mov ecx, edi
mov dword [esi + 0x9c], edi
call fcn.101a4900
jmp 0x1019eb7b
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
call fcn.101a4830
mov eax, dword [eax]
push 0x10258520
push eax
call fcn.1009a0c9
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.100cef50
test bl, bl
je 0x1019eb45
mov ecx, dword [esi + 0x9c]
push 0x102704c8
call fcn.101a3ac0
push 0x5c
call fcn.1006625a
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 4
je 0x1019eae0
mov ecx, eax
call fcn.101a3430
mov edi, eax
jmp 0x1019eae2
xor edi, edi
push str.multipart_mixed
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.101a4850
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.101a3fc0
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x2c], 5
call fcn.101a4040
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.100cef50
push str.This_is_a_multi_part_message_in_MIME_format.
mov ecx, edi
call fcn.101a3ac0
mov edx, dword [esi + 0x9c]
mov ecx, edi
push edx
call fcn.101a4900
mov dword [esi + 0x9c], edi
jmp 0x1019eb7b
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
call fcn.101a4830
mov eax, dword [eax]
push str.multipart_mixed
push eax
call fcn.1009a0c9
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.100cef50
test bl, bl
je 0x1019ed7d
push 0x5c
call fcn.1006625a
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 6
je 0x1019eba4
mov ecx, eax
call fcn.101a3430
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x1019ebb0
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.101a4850
push str.base64
mov ecx, ebx
call fcn.101a4880
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.101a4660
mov edi, dword [esp + 0x30]
test edi, edi
je 0x1019ebf7
push edi
call fcn.10099f06
add esp, 4
test eax, eax
je 0x1019ebf7
push 0
push edi
mov ecx, ebx
call fcn.101a4800
mov edi, dword [esp + 0x34]
test edi, edi
je 0x1019ed4c
push edi
call fcn.10099f06
add esp, 4
test eax, eax
je 0x1019ed4c
push edi
mov ecx, ebx
call fcn.101a48e0
mov ecx, dword [esi + 0x9c]
call fcn.101a48f0
xor ebp, ebp
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x1019ec86
mov ecx, dword [esi + 0x9c]
push ebp
call fcn.101a4c10
mov edi, eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.101a4830
mov eax, dword [eax]
push str.multipart_related
push eax
call fcn.1009a0c9
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.100cef50
test bl, bl
jne 0x1019ec78
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, eax
jl 0x1019ec31
jmp 0x1019ec82
test edi, edi
mov ecx, edi
jne 0x1019ed3b
mov ebx, dword [esp + 0x10]
push 0x5c
call fcn.1006625a
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x24], 7
je 0x1019ecab
mov ecx, eax
call fcn.101a3430
mov ebp, eax
jmp 0x1019ecad
xor ebp, ebp
push str.multipart_related
mov ecx, ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.101a4850
push 2
push 0
mov ecx, ebp
call fcn.101a4040
mov eax, dword [esp + 0x2c]
lea edi, [eax - 1]
test edi, edi
jl 0x1019ed25
mov ecx, dword [esi + 0x9c]
push edi
call fcn.101a4c10
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.101a4890
mov eax, dword [eax]
push str.attachment
push eax
call fcn.1009a0c9
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
setne bl
call fcn.100cef50
test bl, bl
je 0x1019ed1e
mov ecx, dword [esi + 0x9c]
push ebp
push edi
call fcn.101a4c20
dec edi
jns 0x1019ecd7
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x9c]
push ebp
push 0
call fcn.101a4a70
test ebp, ebp
mov ecx, ebp
jne 0x1019ed3f
jmp 0x1019ed8a
mov ebx, dword [esp + 0x10]
push ebx
call fcn.101a4900
mov eax, 1
jmp 0x1019ed8c
push str.attachment
mov ecx, ebx
call fcn.101a48b0
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.101a4900
mov eax, 1
jmp 0x1019ed8c
push 0x10258514
call fcn.101a4f90
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