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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a211
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x100a11a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x10022518
cmp dword [ebp + 0xc], 0
jne 0x1002251f
xor eax, eax
jmp 0x100229ed
push 0x104
lea ecx, [ebp - 0x168]
call fcn.100062d0
push 0xfde9
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x168]
call fcn.100086f0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x168]
call fcn.100034b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0xffffffff
jne 0x100225a1
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x1a8]
jmp 0x100229ed
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x1b0], esp
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x1b4]
call fcn.10002ea0
mov edx, dword [eax]
push edx
mov ecx, esi
call fcn.10021980
lea ecx, [ebp - 0x64]
call fcn.10021cd0
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x30], 0
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0xd
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x1002264b
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x1a4]
jmp 0x100229ed
mov dword [ebp - 0x17c], 0x10086430
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x178]
mov al, byte [edx]
mov byte [ebp - 0x16f], al
mov ecx, dword [ebp - 0x17c]
cmp al, byte [ecx]
jne 0x100226bc
cmp byte [ebp - 0x16f], 0
je 0x100226b0
mov edx, dword [ebp - 0x178]
mov al, byte [edx + 1]
mov byte [ebp - 0x16d], al
mov ecx, dword [ebp - 0x17c]
cmp al, byte [ecx + 1]
jne 0x100226bc
add dword [ebp - 0x178], 2
add dword [ebp - 0x17c], 2
cmp byte [ebp - 0x16d], 0
jne 0x1002265e
mov dword [ebp - 0x184], 0
jmp 0x100226c7
sbb edx, edx
or edx, 1
mov dword [ebp - 0x184], edx
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x1002270f
mov dword [ebp - 0x19c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x19c]
jmp 0x100229ed
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
push 0
lea edx, [ebp - 0x30]
push edx
push 8
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x174], eax
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x1bc], eax
push 4
lea ecx, [ebp - 0x2c]
call fcn.100062d0
push 0x100a5358
mov ecx, dword [ebp - 0x174]
add ecx, 1
push ecx
call fcn.10037197
add esp, 8
mov dword [ebp - 0x1ac], eax
mov edx, dword [ebp - 0x1ac]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10008f20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x174]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10021e00
mov byte [eax], 0
lea ecx, [ebp - 0x2c]
call fcn.10021e20
movzx ecx, al
test ecx, ecx
jne 0x100227fc
mov dword [ebp - 0x18c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x18c]
jmp 0x100229ed
push 0
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x174]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000ab80
push eax
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x1002286d
mov dword [ebp - 0x190], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x190]
jmp 0x100229ed
lea ecx, [ebp - 0x168]
call fcn.100034b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x34], 0
push 0x10086440
lea ecx, [ebp - 0x1f0]
call fcn.100080b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.1000ab80
push eax
lea ecx, [ebp - 0x1d8]
call fcn.100080b0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x1d8]
push ecx
call fcn.10008ca0
add esp, 0xc
test eax, eax
jne 0x100228e2
mov dword [ebp - 0x188], 1
jmp 0x100228ec
mov dword [ebp - 0x188], 0
mov dl, byte [ebp - 0x188]
mov byte [ebp - 0x16e], dl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1d8]
call fcn.10008120
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f0]
call fcn.10008120
movzx eax, byte [ebp - 0x16e]
test eax, eax
je 0x10022960
mov dword [ebp - 0x194], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x194]
jmp 0x100229ed
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x16c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x174]
add eax, 0x15
cdq
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x34]
cdq
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x174]
cdq
mov ecx, dword [ebp - 0x3c]
sub ecx, eax
mov eax, dword [ebp - 0x38]
sbb eax, edx
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 8]
adc eax, dword [edx + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov dword [ebp - 0x198], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036c51
mov esp, ebp
pop ebp
ret 8