Function at 0x100c35b0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x102651df
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.100cb2f0
mov edi, eax
or ebp, 0xffffffff
add esp, 8
cmp edi, ebp
jne 0x100c35f0
push 0x102d7e0c
jmp 0x100c3af2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x100c361a
push 0x102d8168
call fcn.100c9cc0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100c3afa
mov ecx, dword [esi + 0xa8]
add ecx, eax
cmp ecx, 0x6400000
jbe 0x100c3643
push 0x102d8148
call fcn.100c9cc0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100c3afa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x9c]
call fcn.100c9620
test eax, eax
jne 0x100c37e5
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x14]
push edx
call fcn.100c9560
mov eax, dword [eax]
push 0x102d7fc4
push eax
mov dword [esp + 0x2c], 0
call fcn.10079579
add esp, 8
test eax, eax
je 0x100c36bf
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x10]
push eax
call fcn.100c9560
mov eax, dword [eax]
push 0x102d8060
push eax
call fcn.10079579
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10090bf0
test bl, bl
je 0x100c36bf
mov bl, 1
jmp 0x100c36c1
xor bl, bl
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.10090bf0
test bl, bl
je 0x100c3712
mov ecx, dword [esi + 0x9c]
push 0x102d7fc4
call fcn.100c9580
mov ecx, dword [esi + 0x9c]
push str.UTF_8
call fcn.100c9360
mov ecx, dword [esi + 0x9c]
push str.base64
call fcn.100c95b0
mov ecx, dword [esi + 0x9c]
push 0x102f684c
call fcn.100c87f0
push 0x5c
call fcn.1024cbd1
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 1
je 0x100c3737
mov ecx, eax
call fcn.100c8160
mov ebx, eax
jmp 0x100c3739
xor ebx, ebx
push 0x102d8080
mov ecx, ebx
mov dword [esp + 0x28], ebp
call fcn.100c9580
push 0
push 0
mov ecx, ebx
call fcn.100c8d70
mov ecx, dword [esi + 0x9c]
push ecx
mov ecx, ebx
call fcn.100c9630
push 0x5c
call fcn.1024cbd1
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 2
je 0x100c3787
mov ecx, eax
call fcn.100c8160
mov edi, eax
jmp 0x100c3789
xor edi, edi
push str.multipart_mixed
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.100c9580
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.100c8cf0
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x2c], 3
call fcn.100c8d70
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.10090bf0
push str.This_is_a_multi_part_message_in_MIME_format.
mov ecx, edi
call fcn.100c87f0
push ebx
mov ecx, edi
mov dword [esi + 0x9c], edi
call fcn.100c9630
jmp 0x100c38eb
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
call fcn.100c9560
mov eax, dword [eax]
push 0x102d8080
push eax
call fcn.10079579
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.10090bf0
test bl, bl
je 0x100c38b5
mov ecx, dword [esi + 0x9c]
push 0x102f684c
call fcn.100c87f0
push 0x5c
call fcn.1024cbd1
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 4
je 0x100c3850
mov ecx, eax
call fcn.100c8160
mov edi, eax
jmp 0x100c3852
xor edi, edi
push str.multipart_mixed
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.100c9580
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.100c8cf0
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x2c], 5
call fcn.100c8d70
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.10090bf0
push str.This_is_a_multi_part_message_in_MIME_format.
mov ecx, edi
call fcn.100c87f0
mov edx, dword [esi + 0x9c]
mov ecx, edi
push edx
call fcn.100c9630
mov dword [esi + 0x9c], edi
jmp 0x100c38eb
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
call fcn.100c9560
mov eax, dword [eax]
push str.multipart_mixed
push eax
call fcn.10079579
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.10090bf0
test bl, bl
je 0x100c3aed
push 0x5c
call fcn.1024cbd1
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 6
je 0x100c3914
mov ecx, eax
call fcn.100c8160
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x100c3920
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
push 0x102d8114
mov ecx, ebx
mov dword [esp + 0x28], ebp
call fcn.100c9580
push str.base64
mov ecx, ebx
call fcn.100c95b0
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.100c9390
mov edi, dword [esp + 0x30]
test edi, edi
je 0x100c3967
push edi
call fcn.10078f12
add esp, 4
test eax, eax
je 0x100c3967
push 0
push edi
mov ecx, ebx
call fcn.100c9530
mov edi, dword [esp + 0x34]
test edi, edi
je 0x100c3abc
push edi
call fcn.10078f12
add esp, 4
test eax, eax
je 0x100c3abc
push edi
mov ecx, ebx
call fcn.100c9610
mov ecx, dword [esi + 0x9c]
call fcn.100c9620
xor ebp, ebp
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x100c39f6
mov ecx, dword [esi + 0x9c]
push ebp
call fcn.100c9940
mov edi, eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.100c9560
mov eax, dword [eax]
push str.multipart_related
push eax
call fcn.10079579
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.10090bf0
test bl, bl
jne 0x100c39e8
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, eax
jl 0x100c39a1
jmp 0x100c39f2
test edi, edi
mov ecx, edi
jne 0x100c3aab
mov ebx, dword [esp + 0x10]
push 0x5c
call fcn.1024cbd1
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x24], 7
je 0x100c3a1b
mov ecx, eax
call fcn.100c8160
mov ebp, eax
jmp 0x100c3a1d
xor ebp, ebp
push str.multipart_related
mov ecx, ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.100c9580
push 2
push 0
mov ecx, ebp
call fcn.100c8d70
mov eax, dword [esp + 0x2c]
lea edi, [eax - 1]
test edi, edi
jl 0x100c3a95
mov ecx, dword [esi + 0x9c]
push edi
call fcn.100c9940
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.100c95c0
mov eax, dword [eax]
push str.attachment
push eax
call fcn.10079579
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
setne bl
call fcn.10090bf0
test bl, bl
je 0x100c3a8e
mov ecx, dword [esi + 0x9c]
push ebp
push edi
call fcn.100c9950
dec edi
jns 0x100c3a47
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x9c]
push ebp
push 0
call fcn.100c97a0
test ebp, ebp
mov ecx, ebp
jne 0x100c3aaf
jmp 0x100c3afa
mov ebx, dword [esp + 0x10]
push ebx
call fcn.100c9630
mov eax, 1
jmp 0x100c3afc
push str.attachment
mov ecx, ebx
call fcn.100c95e0
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.100c9630
mov eax, 1
jmp 0x100c3afc
push 0x102d8074
call fcn.100c9cc0
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