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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
cmp dword [ebx + 0xc], 0
je 0x10093867
mov eax, dword [ebp + 8]
mov edx, 1
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
sub ecx, esi
sub edx, dword [eax - 4]
or edx, ecx
jge 0x1009364b
push esi
lea ecx, [ebp + 8]
call fcn.10003310
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.101e7180
mov eax, dword [ebp + 8]
xor ecx, ecx
add esp, 8
mov dword [eax - 0xc], esi
mov eax, dword [ebp + 8]
mov word [eax + esi*2], cx
mov eax, dword [ebx + 4]
mov ecx, eax
mov esi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov edi, dword [ecx + 4]
cmp byte [edi + 0xd], 0
jne 0x100936d0
mov eax, esi
mov ecx, dword [edi + 0x10]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x100936ad
test si, si
je 0x100936a9
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x100936ad
add ecx, 4
add edx, 4
test si, si
jne 0x10093687
xor ecx, ecx
jmp 0x100936b2
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jns 0x100936be
mov edi, dword [edi + 8]
mov ecx, dword [ebp - 8]
jmp 0x100936c5
mov ecx, edi
mov edi, dword [edi]
mov dword [ebp - 8], ecx
cmp byte [edi + 0xd], 0
je 0x10093682
mov esi, dword [ebp - 4]
mov eax, ebx
cmp ecx, ebx
je 0x10093712
mov edx, dword [ecx + 0x10]
mov ecx, esi
lea esp, [esp]
mov si, word [ecx]
cmp si, word [edx]
jne 0x10093706
test si, si
je 0x10093702
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x10093706
add ecx, 4
add edx, 4
test si, si
jne 0x100936e0
xor ecx, ecx
jmp 0x1009370b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
js 0x10093712
mov ebx, dword [ebp - 8]
cmp ebx, eax
je 0x10093860
call fcn.10003180
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10093732
push esi
call edi
push 8
call fcn.10003680
mov ecx, dword [ebp - 4]
add esp, 4
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ecx
test eax, eax
je 0x10093757
call eax
jmp 0x1009375d
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test esi, esi
je 0x1009376a
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
je 0x10093867
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10093785
push esi
call edi
push 0x11
call fcn.10003680
add esp, 4
push 0
push ebx
test eax, eax
je 0x1009379f
call eax
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x100937aa
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x100937b5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp edi, eax
jbe 0x100937c3
mov edi, eax
mov dword [ebp - 4], edi
lea esi, [edi + 1]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x10093824
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100937f7
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 9
call fcn.10003680
add esp, 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push ebx
test eax, eax
je 0x10093813
call eax
jmp 0x10093819
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
je 0x10093824
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1009383a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x14
call fcn.10003680
add esp, 4
push ebx
test eax, eax
je 0x1009384d
call eax
jmp 0x10093853
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10093869
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10093869
mov ecx, dword [ebp - 4]
xor edi, edi
jmp 0x1009386c
xor edi, edi
mov ecx, dword [ebp + 8]
lea eax, [ecx - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10093884
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8