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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100935e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100b5350]
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 esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
call fcn.10008c10
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call fcn.10009370
test al, al
jne 0x1002e1ed
push 0
push 0
push 3
push 0
push 0
push accept
lea ecx, [esi + 8]
call fcn.10001a10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002e1ed
push 0
push ebx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.1006caea
add esp, 4
lea ecx, [ebp - 0x14]
push 0
push ecx
push esi
push eax
push ebx
mov dword [ebp - 0x18], eax
mov byte [eax + esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002e1fd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.10008c30
jmp 0x1002e42e
push 0x100a73c5
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.10008c50
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x18]
push esi
lea eax, [ebp - 0x20]
push 0x100a752c
push eax
call fcn.1000db70
push esi
call fcn.10072081
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.10008c10
push 0x75
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.10008d70
push 0x73
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x65
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x72
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x5f
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x70
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x72
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x65
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x66
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x28
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x22
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x62
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x72
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x6f
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x77
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x73
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x65
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x72
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x2e
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x73
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x74
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x61
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x72
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x74
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x75
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x70
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x2e
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x68
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x6f
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x6d
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x65
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x70
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x61
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x67
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x65
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x22
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0x2c
lea ecx, [ebp - 0x18]
call fcn.10008d70
push 0
lea ecx, [ebp - 0x18]
call fcn.10001a10
push eax
lea ecx, [ebp - 0x20]
call fcn.10008f80
mov esi, eax
cmp esi, 0xffffffff
je 0x1002e413
push esi
push 0x100ac5a8
lea ecx, [ebp - 0x20]
call fcn.10008f80
sub eax, esi
sub eax, 0x29
push eax
lea eax, [esi + 0x27]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.10009030
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.10008cd0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.10008cc0
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.10008c30
lea ecx, [ebp - 0x18]
call fcn.10008cc0
lea ecx, [ebp - 0x20]
call fcn.10008cc0
lea ecx, [ebp - 0x1c]
call fcn.10008cc0
mov eax, edi
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.100704e7
mov esp, ebp
pop ebp
ret 4