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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0xa0
lea eax, [0x10083f74]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
sub esp, 0xc
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 4
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10008b39
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x10008c8a
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
jmp 0x10008c70
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub ecx, 1
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x10008cb9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov word [eax + ecx*2], 0
mov eax, dword [ebp - 0x18]
add eax, 0xffffffff
mov dword [ebp - 0x18], eax
jmp 0x10008c90
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x30]
movsx eax, byte [eax + ecx]
cmp eax, 0
je 0x10008cf7
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x30]
movsx eax, byte [eax + ecx]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
jmp 0x10008cc0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov dword [ebp - 0x48], eax
mov eax, 0xffffffff
cmp dword [ebp - 0x48], eax
jne 0x10008d4a
jmp 0x10009006
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub esp, 8
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.10008b39
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x48]
lea esi, [ebp - 0x58]
xor edi, edi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
cmp eax, 0
jne 0x10008ddc
jmp 0x10009006
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x7c]
jae 0x10008e46
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx]
mov dword [ecx], eax
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
jmp 0x10008e20
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 1
mov ecx, dword [ebp - 0x60]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x10008e79
jmp 0x10009006
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 1
mov ecx, dword [ebp - 0x60]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10008eac
jmp 0x10009006
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [esp], ecx
call eax
sub esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10008ed7
jmp 0x10009006
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x28]
add eax, ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x6c]
add eax, dword [ecx + 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
lea edi, [ebp - 0x38]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.10008b79
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
lea edi, [ebp - 0x38]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
movsx eax, byte [eax + ecx]
cmp eax, 0
je 0x10008fcf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
movsx eax, byte [eax + ecx]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x20]
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x10008f9b
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x20]
mov word [eax + ecx*2], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x84], 1
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call dword [ebp - 0x64]
add esp, 0xa0
pop esi
pop edi
pop ebp
ret