Function at 0x100a7c10
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10192dd4
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.100af190
mov edi, eax
or ebp, 0xffffffff
add esp, 8
cmp edi, ebp
jne 0x100a7c50
push 0x101dcaec
jmp 0x100a7fef
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
mov dword [esp + 0x1c], eax
jne 0x100a7c7a
push 0x101dce40
call fcn.100adb60
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100a7ff7
mov ecx, dword [esi + 0xa8]
add ecx, eax
cmp ecx, 0x6400000
jbe 0x100a7ca3
push 0x101dce20
call fcn.100adb60
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100a7ff7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x9c]
call fcn.100ad6d0
test eax, eax
jne 0x100a7e45
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x14]
push edx
call fcn.100ad630
mov eax, dword [eax]
push 0x101dcc9c
push eax
mov dword [esp + 0x30], 0
call fcn.1005fef2
add esp, 8
test eax, eax
je 0x100a7d1f
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x10]
push eax
call fcn.100ad630
mov eax, dword [eax]
push str.text_html
push eax
call fcn.1005fef2
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10077520
test bl, bl
je 0x100a7d1f
mov bl, 1
jmp 0x100a7d21
xor bl, bl
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.10077520
test bl, bl
je 0x100a7d72
mov ecx, dword [esi + 0x9c]
push 0x101dcc9c
call fcn.100ad650
mov ecx, dword [esi + 0x9c]
push str.UTF_8
call fcn.100ad430
mov ecx, dword [esi + 0x9c]
push str.base64
call fcn.100ad680
mov ecx, dword [esi + 0x9c]
push 0x101ec534
call fcn.100ac8c0
push 0x5c
call fcn.1017c342
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x28], 1
je 0x100a7d97
mov ecx, eax
call fcn.100ac260
mov ebx, eax
jmp 0x100a7d99
xor ebx, ebx
push 0x101dcd58
mov ecx, ebx
mov dword [esp + 0x2c], ebp
call fcn.100ad650
push 0
push 0
mov ecx, ebx
call fcn.100ace40
mov ecx, dword [esi + 0x9c]
push ecx
mov ecx, ebx
call fcn.100ad6e0
push 0x5c
call fcn.1017c342
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x28], 2
je 0x100a7de7
mov ecx, eax
call fcn.100ac260
mov edi, eax
jmp 0x100a7de9
xor edi, edi
push str.multipart_mixed
mov ecx, edi
mov dword [esp + 0x2c], ebp
call fcn.100ad650
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.100acdc0
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x30], 3
call fcn.100ace40
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.10077520
push str.This_is_a_multi_part_message_in_MIME_format.
mov ecx, edi
call fcn.100ac8c0
push ebx
mov ecx, edi
mov dword [esi + 0x9c], edi
call fcn.100ad6e0
jmp 0x100a7f4b
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
call fcn.100ad630
mov eax, dword [eax]
push 0x101dcd58
push eax
call fcn.1005fef2
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.10077520
test bl, bl
je 0x100a7f15
mov ecx, dword [esi + 0x9c]
push 0x101ec534
call fcn.100ac8c0
push 0x5c
call fcn.1017c342
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x28], 4
je 0x100a7eb0
mov ecx, eax
call fcn.100ac260
mov edi, eax
jmp 0x100a7eb2
xor edi, edi
push str.multipart_mixed
mov ecx, edi
mov dword [esp + 0x2c], ebp
call fcn.100ad650
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.100acdc0
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x30], 5
call fcn.100ace40
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.10077520
push str.This_is_a_multi_part_message_in_MIME_format.
mov ecx, edi
call fcn.100ac8c0
mov edx, dword [esi + 0x9c]
mov ecx, edi
push edx
call fcn.100ad6e0
mov dword [esi + 0x9c], edi
jmp 0x100a7f4b
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x18]
push eax
call fcn.100ad630
mov eax, dword [eax]
push str.multipart_mixed
push eax
call fcn.1005fef2
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.10077520
test bl, bl
je 0x100a7fea
push 0x5c
call fcn.1017c342
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x28], 6
je 0x100a7f70
mov ecx, eax
call fcn.100ac260
mov edi, eax
jmp 0x100a7f72
xor edi, edi
push str.application_octet_stream
mov ecx, edi
mov dword [esp + 0x2c], ebp
call fcn.100ad650
push str.base64
mov ecx, edi
call fcn.100ad680
push str.attachment
mov ecx, edi
call fcn.100ad690
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, edi
call fcn.100ad460
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x100a7fc5
push ebx
call fcn.1005f906
add esp, 4
test eax, eax
je 0x100a7fc5
push 0
push ebx
mov ecx, edi
call fcn.100ad600
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.100ad6e0
mov eax, 1
jmp 0x100a7ff9
push 0x101dcd4c
call fcn.100adb60
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