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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], edx
mov ebx, eax
lea eax, [ebp - 0x34]
mov edx, dword [0x41c6c4]
call fcn.004054d0
xor eax, eax
push ebp
push 0x41f66e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41f2fe
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.004050f8
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x41f327
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x38]
mov edx, ebx
call fcn.00404a20
mov eax, dword [ebp - 0x38]
call fcn.00404c58
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f63a
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41f634
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x41f62b
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
cmp eax, 0x22
jbe 0x41f392
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
and eax, 3
test eax, eax
jne 0x41f392
cmp dword [esi], 0x4742444a
jne 0x41f392
cmp byte [esi + 4], 1
je 0x41f396
xor eax, eax
jmp 0x41f398
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x41f3ea
cmp byte [esi + 0x21], 0
je 0x41f3ea
mov eax, dword [esi + 0x1d]
neg eax
mov dword [ebp - 0xc], eax
mov edi, esi
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
shr eax, 2
test eax, eax
jle 0x41f3d5
mov dword [ebp - 0x10], 1
mov edx, dword [edi]
add dword [ebp - 0xc], edx
add edi, 4
inc dword [ebp - 0x10]
dec eax
jne 0x41f3c7
mov eax, dword [ebp - 0xc]
shr eax, 8
mov edx, dword [ebp - 0xc]
shl edx, 0x18
or eax, edx
cmp eax, dword [esi + 0x1d]
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x41f625
mov eax, esi
add eax, dword [esi + 9]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x41f471
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.0041f264
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x20]
mov eax, esi
mov edx, dword [ebp - 0x1c]
call fcn.0041f1fc
push 1
mov edi, dword [0x533280]
mov edi, dword [edi]
mov ecx, 0x7fffffff
mov edx, dword [ebp - 0x20]
mov eax, 0x41f684
call edi
mov ecx, eax
lea eax, [ebp - 0x20]
mov edx, 1
call fcn.004052f0
mov eax, dword [ebp - 0x18]
push eax
push 1
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, 1
mov dl, 1
call fcn.0041ca34
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.0041f264
test al, al
jne 0x41f408
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0xc]
test eax, eax
jle 0x41f4e4
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 8]
mov edx, eax
dec edx
xor eax, eax
call fcn.0041e5f8
pop ecx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.0041e868
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x44]
test eax, eax
jbe 0x41f4e4
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0xc]
lea edx, [edx + edx*4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
mov ecx, dword [ecx + 8]
mov edi, dword [ebp + 8]
sub eax, dword [ecx + edx*4 - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
mov ecx, dword [ecx + 8]
mov dword [ecx + edx*4 - 0xc], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor edi, edi
mov eax, esi
add eax, dword [esi + 0xd]
mov dword [ebp - 0x14], eax
jmp 0x41f5bc
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.0041f264
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x1c], eax
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.0041f264
add edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov eax, esi
mov edx, dword [ebp - 0x1c]
call fcn.0041f1fc
test edi, edi
jle 0x41f5a6
push dword [ebp - 0x20]
push 0x41f68c
lea ecx, [ebp - 0x3c]
mov eax, esi
mov edx, edi
call fcn.0041f1fc
push dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004051d8
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x40]
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dl, 1
call fcn.00421054
cmp byte [ebp - 0x34], 0
je 0x41f5a6
mov ecx, dword [0x533644]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call ecx
test al, al
je 0x41f5a6
mov eax, dword [ebp - 0x28]
call fcn.00405108
mov ecx, eax
inc ecx
lea eax, [ebp - 0x20]
mov edx, 1
call fcn.004052f0
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0x20]
mov dl, 1
call fcn.0041ccd0
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.0041f264
test al, al
jne 0x41f4fd
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, esi
add eax, dword [esi + 0x11]
mov dword [ebp - 0x14], eax
jmp 0x41f616
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.0041f264
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x40]
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x1c]
call fcn.0041d0b8
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.0041f264
test al, al
jne 0x41f5e3
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f675
lea eax, [ebp - 0x3c]
call fcn.00404f44
lea eax, [ebp - 0x38]
call fcn.00404788
lea eax, [ebp - 0x34]
mov edx, dword [0x41c6c4]
call fcn.004055a0
lea eax, [ebp - 0x20]
call fcn.00404f44
ret