Function at 0x406ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x450e86
push eax
mov eax, 0xfc28
mov dword fs:[0], esp
call fcn.00431df0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xfc48]
xor ebx, ebx
push edi
mov eax, dword [esi + 4]
mov ebp, ecx
cmp eax, ebx
jne 0x406eda
mov eax, 0x45561c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4071bc
mov al, byte [0x471b14]
mov ecx, 0x3eff
mov byte [esp + 0x38], al
xor eax, eax
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x406f16
mov eax, 0x45561c
push eax
lea ecx, [esp + 0x3c]
push 0xfbff
push ecx
push 0x481894
push ebx
push ebx
call fcn.0041f7a7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
call esi
call esi
cmp eax, ebx
jne 0x4071bc
mov dl, byte [esp + 0x13]
push ebx
push ebx
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x40]
mov byte [esp + 0x1c], dl
call fcn.00405580
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x38]
push 0x471b14
push eax
mov dword [esp + 0xfc48], ebx
call fcn.00431ced
add esp, 8
test eax, eax
je 0x407061
mov bl, byte [esp + 0x13]
test esi, esi
je 0x407061
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40704b
push str.Include
push esi
call fcn.00431813
add esp, 8
test eax, eax
jne 0x406fd5
mov ecx, dword [esp + 0xfc4c]
mov edx, dword [esp + 0xfc48]
push ecx
push edx
mov ecx, ebp
call fcn.00407d00
mov edi, eax
test edi, edi
jne 0x407081
jmp 0x407033
cmp byte [esi], 0x3b
je 0x407033
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], bl
call fcn.004017f0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.00405170
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0xfc4c], 1
call fcn.00405490
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0xfc44], 0
call fcn.004017f0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
call fcn.00431c54
add esp, 8
inc eax
mov esi, eax
push 0x471b14
push esi
call fcn.00431ced
add esp, 8
test eax, eax
jne 0x406f86
mov ecx, dword [ebp + 4]
xor ebx, ebx
push ebx
push ebx
call fcn.00403ec0
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x20], esi
je 0x40714b
jmp 0x4070ba
mov eax, dword [esp + 0x18]
mov dword [esp + 0xfc40], 0xffffffff
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004054f0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00447dfa
add esp, 4
mov eax, edi
jmp 0x4071bc
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0xc]
add esi, 8
test eax, eax
jne 0x4070c9
mov eax, 0x45561c
push eax
push str.Merging_section___s__n
push 0x20
push 0x471d20
call fcn.00401200
mov edx, dword [esp + 0xfc5c]
mov eax, dword [esp + 0xfc58]
add esp, 0x10
mov ecx, ebp
push edx
push esi
push eax
call fcn.00407240
mov ecx, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
fild dword [esp + 0x24]
mov dword [esp + 0x2c], 0
mov edi, eax
push 0
fmul qword [0x455628]
fild qword [esp + 0x2c]
fdivp st(1)
call fcn.00431e20
mov ecx, dword [ebp + 4]
push eax
call fcn.00403ec0
test edi, edi
jne 0x4071d7
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [edx]
cmp eax, ecx
mov dword [esp + 0x20], eax
jne 0x4070b6
mov eax, dword [esp + 0x1c]
push eax
push str._tMerged__d_sections_n
push 0x20
push 0x471d20
call fcn.00401200
mov ebp, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0xfc40], 0xffffffff
mov edi, dword [ebp]
cmp edi, ebp
je 0x4071ad
mov esi, edi
mov edi, dword [edi]
push 0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [ecx], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
lea ecx, [esi + 8]
call fcn.00406b40
push esi
call fcn.00447dfa
mov ecx, dword [esp + 0x20]
add esp, 4
dec ecx
cmp edi, ebp
mov dword [esp + 0x1c], ecx
jne 0x40717a
mov edx, dword [esp + 0x18]
push edx
call fcn.00447dfa
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xfc38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xfc34
ret 8
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4071e7
mov eax, 0x45561c
push eax
push str.Error_merging_section___s__n
push 1
push 0x471d20
call fcn.00401200
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0xfc40], 0xffffffff
mov esi, dword [ebx]
cmp esi, ebx
je 0x407228
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004056e0
cmp esi, ebx
jne 0x407211
mov edx, dword [esp + 0x18]
push edx
call fcn.00447dfa
add esp, 4
mov eax, edi
jmp 0x4071bc