Function at 0x412b80
Capabilities:
Check if file exists
Get file attributes
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467e90
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x4c], edi
call fcn.004123b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x412bcf
lea eax, [ebp - 0x3c]
jmp 0x412bf4
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x3c]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x412bf1
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x3c]
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412d75
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov esi, dword [eax + 4]
test esi, esi
jne 0x412c45
push 0xc
call fcn.00414d1e
mov esi, eax
push 0x100
mov dword [ebp - 0x4c], esi
mov dword [esi], 0x100
mov dword [esi + 4], 0
call fcn.0044ecb6
mov dword [esi + 8], eax
add esp, 8
mov eax, dword [ebp - 0x38]
mov dword [eax + 4], esi
mov dword [esi + 4], 0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, 0x2b
jae 0x412c79
lea edi, [eax + eax*2]
shr edi, 1
add edi, 0x2b
cmp eax, edi
jae 0x412c76
push edi
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov dword [esi], edi
mov edi, dword [ebp - 0x44]
mov eax, dword [esi + 8]
push 0x2b
add eax, ecx
push 0x477750
push eax
call fcn.0044cb90
mov edx, dword [esi + 4]
add esp, 0xc
mov ecx, dword [esi]
add edx, 0x2b
mov dword [esi + 4], edx
lea eax, [edx + 0xc]
cmp ecx, eax
jae 0x412cc6
lea eax, [ecx + ecx*2]
shr eax, 1
add eax, 0xc
mov dword [ebp - 0x38], eax
cmp ecx, eax
jae 0x412cc6
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov edx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
mov ecx, dword [esi + 8]
movq xmm0, qword [0x479968]
movq qword [ecx + edx], xmm0
mov eax, dword [0x479970]
mov dword [ecx + edx + 8], eax
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, 0xc
mov dword [esi + 4], edx
lea eax, [edx + 0xb]
cmp ecx, eax
jae 0x412d17
lea eax, [ecx + ecx*2]
shr eax, 1
add eax, 0xb
mov dword [ebp - 0x38], eax
cmp ecx, eax
jae 0x412d17
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov edx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
mov ecx, dword [esi + 8]
movq xmm0, qword [str.__font__br_]
movq qword [ecx + edx], xmm0
mov ax, word [0x477798]
mov word [ecx + edx + 8], ax
mov al, byte [0x47779a]
mov byte [ecx + edx + 0xa], al
add dword [esi + 4], 0xb
call fcn.00403dc0
mov eax, dword [ebp - 0x3c]
mov dword [edi], 0
test eax, eax
je 0x413234
add eax, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x413234
push dword [ebp - 0x3c]
call fcn.0044ec66
add esp, 4
jmp 0x413234
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x412d81
lea eax, [ebp - 0x3c]
jmp 0x412da6
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x3c]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x412da3
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x3c]
add eax, 0x10
push 0x72
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
call fcn.00403790
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x412dcc
cmp dword [esi], 0xffffffff
je 0x412dcc
mov al, 1
jmp 0x412dce
xor al, al
test al, al
jne 0x412f74
lea ecx, [ebp - 0x3d]
call fcn.00403d60
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [ecx + 0x2b]
cmp edx, eax
jae 0x412e18
lea edi, [edx + edx*2]
shr edi, 1
add edi, 0x2b
cmp edx, edi
jae 0x412e15
push edi
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov dword [esi], edi
mov edi, dword [ebp - 0x44]
mov eax, dword [esi + 8]
push 0x2b
add eax, ecx
push 0x477750
push eax
call fcn.0044cb90
mov edx, dword [esi + 4]
add esp, 0xc
mov ecx, dword [esi]
add edx, 0x2b
mov dword [esi + 4], edx
lea eax, [edx + 0xe]
cmp ecx, eax
jae 0x412e65
lea eax, [ecx + ecx*2]
shr eax, 1
add eax, 0xe
mov dword [ebp - 0x38], eax
cmp ecx, eax
jae 0x412e65
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov edx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
mov ecx, dword [esi + 8]
movq xmm0, qword [0x479978]
movq qword [ecx + edx], xmm0
mov eax, dword [0x479980]
mov dword [ecx + edx + 8], eax
mov ax, word [0x479984]
mov word [ecx + edx + 0xc], ax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 0xe
mov dword [esi + 4], ecx
lea eax, [ecx + 9]
cmp edx, eax
jae 0x412ec1
lea eax, [edx + edx*2]
shr eax, 1
add eax, 9
mov dword [ebp - 0x38], eax
cmp edx, eax
jae 0x412ec1
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
mov edx, dword [esi + 8]
movq xmm0, qword [0x479814]
movq qword [edx + ecx], xmm0
mov al, byte [0x47981c]
mov byte [edx + ecx + 8], al
add dword [esi + 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0040f4d0
mov edx, eax
mov dword [ebp - 0x38], edx
mov eax, dword [edx + 4]
mov esi, dword [edx]
lea ecx, [eax + 0xb]
cmp esi, ecx
jae 0x412f20
lea esi, [esi + esi*2]
shr esi, 1
add esi, 0xb
cmp dword [edx], esi
jae 0x412f20
push esi
push dword [edx + 8]
call fcn.0044ec0e
mov edx, dword [ebp - 0x38]
add esp, 8
mov dword [edx + 8], eax
mov eax, dword [edx + 4]
mov dword [edx], esi
mov ecx, dword [edx + 8]
movq xmm0, qword [str.__font__br_]
add ecx, eax
movq qword [ecx], xmm0
mov ax, word [0x477798]
mov word [ecx + 8], ax
mov al, byte [0x47779a]
mov byte [ecx + 0xa], al
add dword [edx + 4], 0xb
call fcn.00403dc0
lea ecx, [ebp - 0x48]
mov dword [edi], 0
call fcn.00403730
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x413234
lea ecx, [eax + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jmp 0x412d5f
push 0
push 0
push 0
push 2
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x413125
lea ecx, [ebp - 0x3d]
call fcn.00403d60
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [ecx + 0x2b]
cmp edx, eax
jae 0x412fd4
lea edi, [edx + edx*2]
shr edi, 1
add edi, 0x2b
cmp edx, edi
jae 0x412fd1
push edi
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov dword [esi], edi
mov edi, dword [ebp - 0x44]
mov eax, dword [esi + 8]
push 0x2b
add eax, ecx
push 0x477750
push eax
call fcn.0044cb90
mov edx, dword [esi + 4]
add esp, 0xc
mov ecx, dword [esi]
add edx, 0x2b
mov dword [esi + 4], edx
lea eax, [edx + 0x12]
cmp ecx, eax
jae 0x413021
lea eax, [ecx + ecx*2]
shr eax, 1
add eax, 0x12
mov dword [ebp - 0x38], eax
cmp ecx, eax
jae 0x413021
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov edx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
mov ecx, dword [esi + 8]
movups xmm0, xmmword [0x479988]
movups xmmword [ecx + edx], xmm0
mov ax, word [0x479998]
mov word [ecx + edx + 0x10], ax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 0x12
mov dword [esi + 4], ecx
lea eax, [ecx + 9]
cmp edx, eax
jae 0x413072
lea eax, [edx + edx*2]
shr eax, 1
add eax, 9
mov dword [ebp - 0x38], eax
cmp edx, eax
jae 0x413072
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
mov edx, dword [esi + 8]
movq xmm0, qword [0x479814]
movq qword [edx + ecx], xmm0
mov al, byte [0x47981c]
mov byte [edx + ecx + 8], al
add dword [esi + 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0040f4d0
mov edx, eax
mov dword [ebp - 0x38], edx
mov eax, dword [edx + 4]
mov esi, dword [edx]
lea ecx, [eax + 0xb]
cmp esi, ecx
jae 0x4130d1
lea esi, [esi + esi*2]
shr esi, 1
add esi, 0xb
cmp dword [edx], esi
jae 0x4130d1
push esi
push dword [edx + 8]
call fcn.0044ec0e
mov edx, dword [ebp - 0x38]
add esp, 8
mov dword [edx + 8], eax
mov eax, dword [edx + 4]
mov dword [edx], esi
mov ecx, dword [edx + 8]
movq xmm0, qword [str.__font__br_]
add ecx, eax
movq qword [ecx], xmm0
mov ax, word [0x477798]
mov word [ecx + 8], ax
mov al, byte [0x47779a]
mov byte [ecx + 0xa], al
add dword [edx + 4], 0xb
call fcn.00403dc0
lea ecx, [ebp - 0x48]
mov dword [edi], 0
call fcn.00403730
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x413234
lea ecx, [eax + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jmp 0x412d5f
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
je 0x413151
mov eax, dword [eax + 4]
mov ecx, esi
inc eax
push eax
call fcn.004019f0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
cmp byte [eax + ecx + 0x10], 0
je 0x41314e
mov byte [eax + ecx + 0x10], 0
mov ecx, dword [esi]
lea esi, [ecx + 0x10]
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
push 0
push 0
xor esi, esi
or ecx, 0xffffffff
or esi, dword [ebp - 0x14]
test eax, eax
push 0
push 4
push dword [ebp - 0x38]
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4131f0
lea ecx, [ebp - 0x3d]
call fcn.00403d60
mov eax, dword fs:[0x2c]
push str.__font__br_
mov eax, dword [eax]
mov esi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x479814
push 0x47999c
push 0x477750
mov ecx, esi
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.0040f4d0
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x477848
mov ecx, edi
call fcn.00401460
jmp 0x413224
push esi
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00402630
add esp, 4
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
mov dword [edi], eax
mov dword [ebp - 0x44], 0
call fcn.004013f0
lea ecx, [ebp - 0x48]
call fcn.00403730
lea ecx, [ebp - 0x3c]
call fcn.004013f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414803
mov esp, ebp
pop ebp
ret 4