Function at 0x4209a8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4209b0
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x420cdd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
call fcn.00404fa4
push 1
mov ebx, dword [0x533280]
mov ebx, dword [ebx]
mov ecx, 0x7fffffff
mov edx, dword [ebp - 8]
mov eax, 0x420cf4
call ebx
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 0x7fffffff
call fcn.004052f0
cmp byte [ebp - 1], 0
jne 0x420a3e
lea eax, [ebp - 0x14]
mov ecx, 0x420cfc
mov edx, dword [ebp - 8]
call fcn.00405174
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
call fcn.0041d2f8
test al, al
je 0x420a3e
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041eaa4
pop ecx
mov bl, 1
jmp 0x420ca2
lea eax, [ebp - 0x18]
mov ecx, 0x420d0c
mov edx, dword [ebp - 8]
call fcn.00405174
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
call fcn.0041d2f8
test al, al
je 0x420a6e
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041decc
pop ecx
test al, al
jne 0x420a72
xor ebx, ebx
jmp 0x420a74
mov bl, 1
test bl, bl
jne 0x420aa3
cmp byte [ebp - 1], 0
jne 0x420a9f
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 0x420d1c
mov edx, dword [ebp - 8]
call fcn.00405174
mov eax, dword [ebp - 0x1c]
call fcn.0041f29c
pop ecx
test al, al
jne 0x420aa3
xor eax, eax
jmp 0x420aa5
mov al, 1
mov ebx, eax
test bl, bl
jne 0x420ca2
cmp byte [ebp - 1], 0
jne 0x420ca2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x48c], eax
mov edx, dword [ebp + 8]
test eax, eax
jne 0x420c83
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x48c], 0x1000
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x420b25
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
call fcn.004050f8
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x420b55
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
call fcn.00404a20
mov eax, dword [ebp - 0x20]
call fcn.00404c58
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x420c83
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x420c7d
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x420c77
mov eax, edi
call fcn.0040f9f0
test eax, eax
je 0x420c71
mov dx, word [eax + 0x18]
cmp dx, 0x20b
jne 0x420bb9
mov ecx, eax
add ecx, 0x108
push ecx
pop ecx
mov dword [ebp - 0x10], ecx
jmp 0x420bc6
mov ecx, eax
add ecx, 0xf8
push ecx
pop ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
test byte [ecx + 0x24], 0x20
je 0x420c14
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x48c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x44], eax
add dword [ebp - 0x10], 0x28
mov eax, dword [ebp - 0x10]
test byte [eax + 0x24], 0x20
je 0x420c71
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
add eax, dword [edx + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x44], eax
jmp 0x420c71
cmp dx, 0x20b
jne 0x420c4a
lea edx, [eax + 0x18]
mov edx, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
mov dword [ecx + 0x48c], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x48c]
add eax, 0x18
add edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x44], edx
jmp 0x420c71
mov edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
mov dword [ecx + 0x48c], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x48c]
add edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x44], edx
push edi
call sub.kernel32.dll_UnmapViewOfFile
push esi
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x24]
mov ecx, 0x420d2c
mov edx, dword [ebp - 8]
call fcn.00405174
mov eax, dword [ebp - 0x24]
call fcn.0041f97c
pop ecx
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420ce4
lea eax, [ebp - 0x24]
call fcn.00404f44
lea eax, [ebp - 0x20]
call fcn.00404788
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404f5c
lea eax, [ebp - 0xc]
call fcn.00404788
lea eax, [ebp - 8]
call fcn.00404f44
ret