Function at 0x421a98
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 - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406eb8
lea eax, [ebp - 0x1c]
mov edx, dword [0x41eb2c]
call fcn.004081ac
xor eax, eax
push ebp
push 0x421e12
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x421de1
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x421ddb
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x421dd2
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
cmp eax, 0x22
jbe 0x421b5e
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
and eax, 3
test eax, eax
jne 0x421b5e
cmp dword [esi], 0x4742444a
jne 0x421b5e
cmp byte [esi + 4], 1
je 0x421b62
xor eax, eax
jmp 0x421b64
mov al, 1
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0
je 0x421bb6
cmp byte [esi + 0x21], 0
je 0x421bb6
mov eax, dword [esi + 0x1d]
neg eax
mov dword [ebp - 0x28], eax
mov edi, esi
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
shr eax, 2
test eax, eax
jle 0x421ba1
mov dword [ebp - 0x2c], 1
mov edx, dword [edi]
add dword [ebp - 0x28], edx
add edi, 4
inc dword [ebp - 0x2c]
dec eax
jne 0x421b93
mov eax, dword [ebp - 0x28]
shr eax, 8
mov edx, dword [ebp - 0x28]
shl edx, 0x18
or eax, edx
cmp eax, dword [esi + 0x1d]
sete byte [ebp - 0x1d]
cmp byte [ebp - 0x1d], 0
je 0x421dcc
mov eax, esi
add eax, dword [esi + 9]
mov dword [ebp - 0x30], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x421c2f
add edi, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.00421a64
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x34], eax
lea ecx, [ebp - 8]
mov eax, esi
mov edx, dword [ebp - 0x34]
call fcn.00421a38
push 1
mov ecx, 0x7fffffff
mov edx, dword [ebp - 8]
mov eax, 0x421e30
call fcn.0040e300
mov ecx, eax
lea eax, [ebp - 8]
mov edx, 1
call fcn.0040771c
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov ecx, edi
mov dl, 1
mov al, 1
call fcn.0041fa84
pop ecx
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.00421a64
test al, al
jne 0x421bd1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0xc]
test eax, eax
jle 0x421ca2
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 8]
mov edx, eax
dec edx
xor eax, eax
call fcn.00420f78
pop ecx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004211ec
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x44]
test eax, eax
jbe 0x421ca2
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 edi, edi
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, esi
add eax, dword [esi + 0xd]
mov dword [ebp - 0x30], eax
jmp 0x421d6b
add edi, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.00421a64
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x34], eax
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.00421a64
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
mov eax, esi
mov edx, dword [ebp - 0x34]
call fcn.00421a38
cmp dword [ebp - 0x38], 0
jle 0x421d58
push dword [ebp - 8]
push 0x421e40
lea ecx, [ebp - 0x3c]
mov eax, esi
mov edx, dword [ebp - 0x38]
call fcn.00421a38
push dword [ebp - 0x3c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004075b4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, edi
mov dl, 1
call fcn.00422f74
cmp byte [ebp - 0x1c], 0
je 0x421d58
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0040ea00
test al, al
je 0x421d58
mov eax, dword [ebp - 0x10]
call fcn.004072a0
mov ecx, eax
inc ecx
lea eax, [ebp - 8]
mov edx, 1
call fcn.0040771c
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, edi
mov edx, dword [ebp - 8]
mov al, 1
call fcn.004200a8
pop ecx
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.00421a64
test al, al
jne 0x421cbb
xor edi, edi
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, esi
add eax, dword [esi + 0x11]
mov dword [ebp - 0x30], eax
jmp 0x421dbd
add edi, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.00421a64
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x40]
add edx, edi
xor ecx, ecx
mov eax, dword [ebp - 0x34]
call fcn.00420730
pop ecx
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.00421a64
test al, al
jne 0x421d8f
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x24]
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 0x421e19
lea eax, [ebp - 0x3c]
call fcn.00406de8
lea eax, [ebp - 0x1c]
mov edx, dword [0x41eb2c]
call fcn.00408284
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406e54
ret