Function at 0x1002eb70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc24e
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x100fc564]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x130]
push 0xffffffffffffffff
push eax
call fcn.1001dd20
mov dword [ebp - 4], 0
xor edi, edi
xor ebx, ebx
call fcn.10020ee0
push eax
lea ecx, [ebp - 0xac]
call fcn.1001dc60
mov byte [ebp - 4], 1
call fcn.10020ef0
mov ecx, eax
call fcn.1001ec00
test al, al
je 0x1002ecad
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0xac]
call fcn.1001e200
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0xac]
call fcn.10015c80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002ec32
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0
call fcn.1001c130
jmp 0x1002ee6e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x1002ec54
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], al
call fcn.1001c130
jmp 0x1002ee6e
push ebx
mov dword [ebp - 0x350], 0
call fcn.100763ad
add esp, 4
mov edi, eax
lea eax, [ebp - 0x350]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x350], ebx
je 0x1002ee57
push edi
call fcn.100763b6
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
xor edi, edi
call fcn.1001c130
jmp 0x1002ee6e
call fcn.10020ef0
push eax
lea ecx, [ebp - 0xac]
call fcn.1001e200
call fcn.100210c0
test al, al
je 0x1002ee57
mov dword [ebp - 0x358], 0xffffffff
call fcn.10020fc0
mov dword [ebp - 0x360], eax
call fcn.10020f00
mov dword [ebp - 0x35c], eax
lea esi, [ebp - 0x360]
mov eax, dword [esi]
mov dword [ebp - 0x350], eax
test eax, eax
je 0x1002edd2
push 0x218
lea eax, [ebp - 0x348]
push 0
push eax
call fcn.10093170
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.10015c80
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x34c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ed43
sub ecx, dword [ebp - 0x34c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10008e10
lea eax, [ebp - 0x348]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x350]
call fcn.1008f120
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 0x34c], eax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x1002edce
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002edbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002efb2
push edx
push ecx
call fcn.10075ef3
mov eax, dword [ebp - 0x34c]
add esp, 8
test eax, eax
jne 0x1002edf4
add esi, 4
lea eax, [ebp - 0x358]
cmp esi, eax
jne 0x1002ecf1
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0
call fcn.1001c130
jmp 0x1002ee6e
mov esi, dword [ebp - 0x350]
test esi, esi
je 0x1002ec1e
mov ebx, dword [ebp - 0x134]
test ebx, ebx
jne 0x1002ee1c
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.1001c130
jmp 0x1002ee6e
push ebx
call fcn.100763ad
push ebx
mov edi, eax
push edi
push dword [ebp - 0x358]
push esi
call fcn.1008ee70
add esp, 0x14
test eax, eax
jne 0x1002ee57
push 1
push edi
call fcn.10075ef3
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
xor edi, edi
call fcn.1001c130
jmp 0x1002ee6e
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0
call fcn.1001c130
test edi, edi
jne 0x1002eee9
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x130]
call fcn.10015c80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002eee9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x1002eee9
push ebx
mov dword [ebp - 0x34c], 0
call fcn.100763ad
add esp, 4
mov edi, eax
lea eax, [ebp - 0x34c]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34c], ebx
je 0x1002eee9
push edi
call fcn.100763b6
add esp, 4
xor edi, edi
xor esi, esi
test edi, edi
je 0x1002ef89
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
mov dword [ebp - 0x35c], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push edi
push eax
call fcn.10092670
add esp, 0xc
mov dword [ebp - 0x354], 0
lea eax, [ebp - 0x354]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 0x354]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x1002ef66
lea eax, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
push eax
push ebx
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
mov dword [esi + 8], 0
test eax, eax
je 0x1002ef80
mov eax, dword [ebp - 0x354]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x35c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
push edi
call fcn.100763b6
add esp, 4
lea ecx, [ebp - 0x130]
call fcn.1001c130
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10076264
mov esp, ebp
pop ebp
ret
call fcn.100964f9
int3