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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
push edi
lea esi, [ebx + 0x19]
mov byte [ebx + 0x18], 1
xor edi, edi
cmp dword [esi], 0xffffffff
je 0x41c992
mov eax, dword [esi + 4]
cmp eax, edi
je 0x41c967
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi + 4], edi
cmp eax, edi
je 0x41c978
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi]
mov dword [esi + 8], edi
cmp eax, 0xffffffff
je 0x41c989
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov dword [esi + 0xc], edi
mov eax, dword [ebp + 8]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41ca0b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi]
push 0
mov edi, eax
push edi
push 0
push 2
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
test eax, eax
jne 0x41ca4e
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x41c9e7
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi]
mov dword [esi + 8], 0
cmp eax, 0xffffffff
je 0x41c9fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov dword [esi + 0xc], 0
xor edi, edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x41ca19
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi + 4], edi
cmp eax, edi
je 0x41ca2a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi]
mov dword [esi + 8], edi
cmp eax, 0xffffffff
je 0x41ca3b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov dword [esi + 0xc], edi
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x41ca6a
call fcn.004093d5
jmp 0x41ca09
mov dword [esi + 0xc], edi
mov esi, dword [ebx + 0x25]
mov edi, dword [ebx + 0x21]
lea ecx, [edi + esi - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x10
mov byte [esp + 0x1c], 0
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x18], 0x10
cmp edx, 0x56425273
jne 0x41cb14
test ecx, 0x200
je 0x41cb14
mov edx, ecx
and edx, 0xf
cmp dl, 6
jne 0x41cb14
test cl, 0xf0
jne 0x41cb14
lea ecx, [eax + edi]
lea edx, [eax + esi]
add ecx, esi
test edx, edx
sete dl
mov dword [esp + 0x10], ecx
lea ecx, [eax + esi]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
add eax, edi
add eax, esi
mov dword [ebx + 0x29], eax
lea eax, [esp + 0x10]
push eax
xor ecx, ecx
push ebx
mov dword [esp + 0x20], ecx
mov byte [esp + 0x24], dl
call fcn.0041c230
test al, al
je 0x41ca44
mov byte [ebx + 0x18], 0
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
call fcn.00411420
mov dword [esp + 0xc], eax
test eax, eax
je 0x41ca44
sub esi, eax
lea ecx, [eax + edi]
mov eax, 0
sete dl
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x2f], dl
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov byte [esp + 0x1c], dl
mov eax, 0x10
test esi, esi
jbe 0x41ca44
cmp esi, eax
ja 0x41cb6b
mov eax, esi
push eax
push ecx
lea ecx, [esp + 0x38]
push ecx
call fcn.0040b610
add esp, 0xc
cmp byte [esp + 0x2f], 0
jne 0x41ca44
cmp dword [esp + 0x30], 0x56425273
jne 0x41ca44
mov eax, dword [esp + 0x3c]
test eax, 0x200
je 0x41ca44
mov edx, eax
and edx, 0xf
cmp dl, 6
jne 0x41ca44
test al, 0xf0
jne 0x41ca44
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0xc]
add eax, esi
xor ecx, ecx
add eax, edi
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push ecx
sete dl
push ebx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x24], dl
call fcn.0041c230
test al, al
je 0x41ca44
sub esi, dword [esp + 0x34]
mov byte [ebx + 0x18], 0
add esi, dword [esp + 0xc]
mov al, 1
add esi, edi
pop edi
mov dword [ebx + 0x29], esi
pop esi
mov esp, ebp
pop ebp
ret 4