Function at 0x404b20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4262d8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4323e0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4323e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x34], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
je 0x404d82
cmp dword [edi + 0x18], ebx
je 0x404d82
lea ecx, [edi + 0x20]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00412b40
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], ebx
call fcn.00412cf0
test al, al
je 0x404d79
cmp dword [edi + 0x1c], 0x10
jb 0x404baa
mov eax, dword [edi + 8]
jmp 0x404bad
lea eax, [edi + 8]
push eax
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
je 0x404d6a
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x404d5f
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 4]
cmp dword [ebx + 0x214], esi
mov dword [esp + 0x10], 1
je 0x404c2d
cmp dword [edi + 0x70], 0x10
jb 0x404c03
mov eax, dword [edi + 0x5c]
jmp 0x404c06
lea eax, [edi + 0x5c]
push esi
push eax
push str.FileMap_Write__s__Status_d__r_n
push 0x40000
push 0x433970
call fcn.00410c40
add esp, 0x14
mov dword [ebx + 0x214], esi
mov dword [esp + 0x10], 2
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x40]
cmp dword [ebx + 0x210], esi
je 0x404c71
cmp dword [edi + 0x70], 0x10
jb 0x404c47
mov edi, dword [edi + 0x5c]
jmp 0x404c4a
add edi, 0x5c
push esi
push edi
push str.FileMap_Write__s__ColNum_d__r_n
push 0x40000
push 0x433970
call fcn.00410c40
add esp, 0x14
mov dword [ebx + 0x210], esi
mov dword [esp + 0x10], 2
xor edi, edi
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x48]
xor esi, esi
test edx, edx
je 0x404cab
mov ecx, dword [eax + 0x4c]
sub ecx, edx
sar ecx, 2
cmp edi, ecx
jae 0x404cab
test edx, edx
je 0x404c9c
mov ecx, dword [eax + 0x4c]
sub ecx, edx
sar ecx, 2
cmp edi, ecx
jb 0x404ca5
call fcn.0041419f
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x48]
mov esi, dword [edx + edi*4]
cmp dword [ebx + edi*8 + 0x318], esi
je 0x404cf3
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x70], 0x10
jb 0x404cc3
mov eax, dword [eax + 0x5c]
jmp 0x404cc6
add eax, 0x5c
push esi
push edi
push eax
push str.FileMap_Write__s__ColorCode__d_0x_X__r_n
push 0x40000
push 0x433970
call fcn.00410c40
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov dword [ebx + edi*8 + 0x318], esi
mov dword [esp + 0x10], 2
mov ecx, dword [ebx + edi*8 + 0x318]
push ecx
mov esi, eax
call fcn.004083e0
mov esi, eax
cmp dword [ebx + edi*8 + 0x31c], esi
je 0x404d48
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x70], 0x10
jb 0x404d1c
mov eax, dword [eax + 0x5c]
jmp 0x404d1f
add eax, 0x5c
push esi
push edi
push eax
push str.FileMap_Write__s__Value__d__d__r_n
push 0x40000
push 0x433970
call fcn.00410c40
add esp, 0x18
mov dword [ebx + edi*8 + 0x31c], esi
mov dword [esp + 0x10], 2
add edi, 1
cmp edi, 4
jb 0x404c73
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x404d79
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x20]
call fcn.00412bb0
mov eax, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00413bbc
mov esp, ebp
pop ebp
ret 4