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

Disassembly:
sub esp, 0x380
push ebx
push ebp
push esi
mov eax, dword [esp + 0x390]
push edi
xor edi, edi
push edi
push 0x20
push 4
push edi
push edi
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x3a0]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], edi
mov dword [ecx], edi
jne 0x1000966b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x380
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 1]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x100096c2
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [edi + ebp]
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100096c2
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x100096b0
sub ebx, eax
add edi, eax
jmp 0x10009687
push 0
push edi
push ebp
call fcn.10024130
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100096dd
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x380
ret
mov edi, dword [esp + 0x398]
lea edx, [esp + 0x3c]
push edi
push ebx
push 0x18
push edx
lea eax, [esp + 0x64]
push 0x18
push eax
lea ecx, [esp + 0x84]
push 0x18
push ecx
call fcn.10026b10
add esp, 0x20
test eax, eax
je 0x10009773
lea edx, [esp + 0x3c]
lea eax, [esp + 0x54]
push edx
push eax
mov dword [esp + 0x18], 1
call fcn.1000b830
add esp, 8
test eax, eax
je 0x10009750
push edi
push ebx
lea ecx, [esp + 0x190]
push 0x104
push ecx
lea edx, [esp + 0x29c]
push 0x104
push edx
call fcn.10026aa0
add esp, 0x18
test eax, eax
jne 0x100097a3
mov eax, dword [esp + 0x3a0]
push ebx
mov dword [eax], 1
call fcn.100232e0
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
jmp 0x100098f0
push edi
push ebx
lea ecx, [esp + 0x190]
push 0x104
push ecx
lea edx, [esp + 0x29c]
push 0x104
push edx
call fcn.10026aa0
add esp, 0x18
test eax, eax
je 0x100097a3
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x394]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
push ebx
push 0
lea edx, [esp + 0x34]
push 0x18
push edx
mov byte [eax], 0
mov dword [esp + 0x30], 0
call fcn.100263b0
add esp, 0x18
test eax, eax
je 0x100098c7
mov esi, dword [esp + 0x39c]
mov ecx, dword [0x1004cc80]
mov eax, dword [esi]
cmp eax, ecx
jge 0x100098c7
push 1
call fcn.1000a800
mov ebp, eax
mov eax, dword [esi]
lea ecx, [eax + eax*2]
shl ecx, 6
add ebp, ecx
push ebp
call fcn.10007060
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x1c], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x3a4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x80]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3a8]
push ecx
push edx
push eax
push ebp
call fcn.10008ee0
mov eax, dword [esp + 0x34]
push ebx
inc eax
lea ecx, [esp + 0x44]
push eax
push 0x18
push ecx
mov dword [esp + 0x44], eax
call fcn.100263b0
mov ebp, dword [esp + 0x40]
add esp, 0x2c
test eax, eax
jne 0x10009803
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3a0]
xor edx, edx
push ebx
test edi, edi
sete dl
mov dword [eax], edx
call fcn.100232e0
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x380
ret