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

Disassembly:
push 0x54
push 0x483a20
call fcn.00440d20
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x44], ecx
xor esi, esi
or eax, 0xffffffff
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], esi
or dword [ebp - 0x24], eax
mov dword [ebp - 0x30], esi
mov ebx, esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
test ecx, ecx
je 0x41fc0a
cmp word [ecx], si
je 0x41fc0a
test edx, edx
je 0x41fc0a
cmp word [edx], si
je 0x41fc0a
push 0xa
pop eax
mov dword [ebp - 0x38], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 1
mov dword [ebp - 0x38], eax
js 0x41fad9
push esi
push esi
push 3
push esi
push 5
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
call edi
mov ecx, eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x41faea
cmp ecx, 0x20
je 0x41fac6
cmp ecx, 5
jne 0x41fad9
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
jmp 0x41fa92
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x41faea
call edi
mov esi, eax
jmp 0x41fc0d
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41fae1
cmp dword [ebp - 0x58], esi
ja 0x41fb10
jb 0x41fb06
cmp dword [ebp - 0x5c], 0xd
ja 0x41fb10
mov esi, 0x570
jmp 0x41fc0d
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x41fae1
push dword [ebp - 0x5c]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x41fae1
mov ecx, dword [ebx + 5]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebx + 9]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x60], ecx
push 0xa
pop eax
mov dword [ebp - 0x3c], eax
sub eax, 1
mov dword [ebp - 0x3c], eax
js 0x41fb9a
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
call edi
mov ecx, eax
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
jne 0x41fba6
cmp ecx, 0x20
je 0x41fb8a
cmp ecx, 5
jne 0x41fb9d
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x3c]
jmp 0x41fb55
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x41fae1
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x48]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x41fae1
push dword [ebp - 0x28]
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x41fae1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff3
mov dword [ebp - 0x4c], eax
push 5
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebx + 0xd]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x2c]
call fcn.00432990
test eax, eax
je 0x41fc10
jmp 0x41fb06
push 0x57
pop esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x41fc3a
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41fc48
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41fc58
push eax
call edi
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x41fc63
push eax
call edi
test ebx, ebx
je 0x41fc6e
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x41fc78
push eax
call edi
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41fc83
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret