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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b661
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x100a21a4]
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 0x10023738
cmp dword [ebp + 0xc], 0
jne 0x1002373f
xor eax, eax
jmp 0x10023c0d
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 0x100237c1
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x1a8]
jmp 0x10023c0d
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.10022ba0
lea ecx, [ebp - 0x64]
call fcn.10022ef0
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 0x1002386b
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10022fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x1a4]
jmp 0x10023c0d
mov dword [ebp - 0x17c], 0x10087460
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 0x100238dc
cmp byte [ebp - 0x16f], 0
je 0x100238d0
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 0x100238dc
add dword [ebp - 0x178], 2
add dword [ebp - 0x17c], 2
cmp byte [ebp - 0x16d], 0
jne 0x1002387e
mov dword [ebp - 0x184], 0
jmp 0x100238e7
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 0x1002392f
mov dword [ebp - 0x19c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10022fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x19c]
jmp 0x10023c0d
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 0x100a6390
mov ecx, dword [ebp - 0x174]
add ecx, 1
push ecx
call fcn.100384e7
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.10023020
mov byte [eax], 0
lea ecx, [ebp - 0x2c]
call fcn.10023040
movzx ecx, al
test ecx, ecx
jne 0x10023a1c
mov dword [ebp - 0x18c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10022f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10022fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x18c]
jmp 0x10023c0d
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 0x10023a8d
mov dword [ebp - 0x190], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10022f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10022fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x190]
jmp 0x10023c0d
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 0x10087470
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 0x10023b02
mov dword [ebp - 0x188], 1
jmp 0x10023b0c
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 0x10023b80
mov dword [ebp - 0x194], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10022f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10022fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.100087a0
mov eax, dword [ebp - 0x194]
jmp 0x10023c0d
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.10022f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10022fd0
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.10037e81
mov esp, ebp
pop ebp
ret 8