Function at 0x9d61ec
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp bl, byte [eax + 0x38]
je 0x9d641b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x9d641b
mov edx, dword [ebp - 4]
mov eax, ebx
mov byte [edx + 0x38], al
test al, al
je 0x9d63d0
mov byte [ebp - 5], 1
xor edx, edx
push ebp
push 0x9d63c9
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0040b3a0
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x4c], ebx
cmp ebx, 0xffffffff
jne 0x9d626f
call fcn.00409a4c
jmp 0x9d641b
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
push 0
push 0
push 0
push 0x8000002
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x50], esi
test esi, esi
jne 0x9d62a8
call fcn.00409a4c
jmp 0x9d641b
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], edi
test edi, edi
jne 0x9d62cc
call fcn.00409a4c
jmp 0x9d641b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x10cc]
mov eax, esi
add eax, 4
cmp ebx, eax
ja 0x9d62e8
call fcn.00409a4c
jmp 0x9d641b
mov edx, esi
mov eax, edi
call fcn.009d2924
mov esi, eax
mov eax, dword [esi]
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov edx, 1
mov eax, esi
call fcn.009d2918
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x5c], edi
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10cc]
add edx, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
add edx, eax
add edx, 0x800
add edx, 0x400
cmp ebx, edx
jae 0x9d633d
call fcn.00409a4c
jmp 0x9d641b
mov edx, eax
mov eax, edi
call fcn.009d2924
mov edx, dword [ebp - 4]
add edx, 0x60
mov ecx, 0x800
call fcn.00406734
xor ebx, ebx
mov eax, dword [ebp - 4]
mov edx, dword [eax + ebx*4 + 0x10a8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.009d2924
mov edx, dword [ebp - 4]
mov dword [edx + ebx*4 + 0x860], eax
inc ebx
cmp ebx, 9
jne 0x9d6358
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x58]
add edx, 0x800
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
call fcn.009d2924
mov edx, dword [ebp - 4]
add edx, 0x884
mov ecx, 0x400
call fcn.00406734
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9d641b
cmp byte [ebp - 5], 0
je 0x9d63c8
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.009d61ec
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
test eax, eax
je 0x9d63e8
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x54], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x9d6400
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
cmp eax, 0xffffffff
je 0x9d641b
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov dword [eax + 0x4c], 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret