Function at 0x41d280
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x495238
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4bf960]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4bf960]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x20], eax
cmp eax, 0x200000
ja 0x41d34c
push eax
mov dword [esp + 0x20], 1
call fcn.00478516
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
je 0x41d354
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + 4]
lea esi, [ebx + 0x20]
mov ecx, esi
mov dword [esp + 0x28], esi
call edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x5c], 0
call fcn.0041d760
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [esp + 0x58], 0xffffffff
mov dword [eax + 0x10], edi
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
test edi, edi
jne 0x41d49d
lea esi, [esp + 0x2c]
mov dword [esp + 0x1c], 0
call fcn.0041d130
mov dword [esp + 0x58], 1
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x41d37c
lea eax, [esp + 0x30]
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x41d46e
mov eax, dword [ebp + 8]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41d46e
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41d46e
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41d46e
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
jne 0x41d40c
lea ecx, [esp + 0x2c]
call fcn.004013e0
jmp 0x41d484
mov edx, dword [ebx + 0x20]
mov eax, dword [edx + 4]
lea esi, [ebx + 0x20]
mov ecx, esi
mov dword [esp + 0x28], esi
call eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x5c], 2
call fcn.0041d760
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [esp + 0x58], 1
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
cmp dword [esp + 0x44], 8
jb 0x41d49d
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0047697c
add esp, 4
jmp 0x41d49d
lea ecx, [esp + 0x2c]
call fcn.004013e0
test edi, edi
je 0x41d484
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor edi, edi
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41d495
push eax
call ebx
cmp esi, 0xffffffff
je 0x41d49d
push esi
call ebx
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00476987
mov esp, ebp
pop ebp
ret 4