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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414c6c
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x422070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x198], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x19c], 0
cmp dword [edi + 0x14], 8
jb 0x40392f
mov eax, dword [edi]
jmp 0x403931
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403bd0
test al, 0x10
jne 0x403bd0
mov edx, edi
lea ecx, [ebp - 0x164]
call fcn.00401270
push str.Builds_
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.004041c0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x150]
cmp eax, 8
jb 0x403994
inc eax
lea ecx, [ebp - 0x164]
push eax
push dword [ebp - 0x164]
call fcn.00401c70
xor eax, eax
mov dword [ebp - 0x150], 7
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x154], 0
mov word [ebp - 0x164], ax
call fcn.004011a0
test al, al
jne 0x403a05
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00401820
mov ecx, dword [ebp - 0x138]
cmp ecx, 8
jb 0x403bee
inc ecx
push ecx
push dword [ebp - 0x14c]
lea ecx, [ebp - 0x14c]
call fcn.00401c70
jmp 0x403bee
cmp dword [ebx + 0x14], 8
jb 0x403a0f
mov eax, dword [ebx]
jmp 0x403a11
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403b92
test al, 0x10
jne 0x403b92
cmp dword [ebx + 0x14], 8
jb 0x403a31
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
xor eax, eax
push 0xffffffffffffffff
push eax
push edi
test ebx, ebx
jne 0x403a68
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], ebx
mov word [esi], ax
call fcn.00401820
lea ecx, [ebp - 0x14c]
call fcn.00401410
jmp 0x403bee
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], 7
mov dword [ebp - 0x124], 0
mov word [ebp - 0x134], ax
call fcn.00401820
push str.ShowEngineChoice
push ebx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x403b65
cmp dword [edi + 0x14], 8
jb 0x403ab6
mov edx, dword [edi]
jmp 0x403ab8
mov edx, edi
lea ecx, [ebp - 0x17c]
call fcn.004025c0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x17c]
cmp dword [ebp - 0x168], 0x10
cmovae eax, dword [ebp - 0x17c]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.0040942d
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
call dword [ebp - 0x198]
test eax, eax
je 0x403b4a
lea edx, [ebp - 0x11c]
lea ecx, [ebp - 0x194]
call fcn.004024a0
push eax
lea ecx, [ebp - 0x134]
call fcn.00402d10
lea ecx, [ebp - 0x194]
call fcn.00401410
cmp dword [ebp - 0x124], 0
jne 0x403b5a
lea eax, [ebp - 0x134]
cmp eax, edi
je 0x403b5a
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00401820
jmp 0x403b5a
push 0x41f3e0
lea ecx, [ebp - 0x134]
call fcn.00403f60
lea ecx, [ebp - 0x17c]
call fcn.00401530
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x134]
mov ecx, esi
push eax
call fcn.00401450
lea ecx, [ebp - 0x134]
call fcn.00401410
lea ecx, [ebp - 0x14c]
call fcn.00401410
jmp 0x403bee
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00401820
mov eax, dword [ebp - 0x138]
cmp eax, 8
jb 0x403bee
inc eax
lea ecx, [ebp - 0x14c]
push eax
push dword [ebp - 0x14c]
call fcn.00401c70
jmp 0x403bee
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00401820
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00404b43
mov esp, ebp
pop ebp
ret