Function at 0x466380
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a8e3e
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
lea edi, [esp + 0x24]
call fcn.00474ab0
mov dword [esp + 0x10c], 0
mov edx, dword [esp + 0x24]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x4663f0
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4664af
cmp ecx, eax
jg 0x4664af
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4663f0
push 0x5c
call fcn.00404400
lea ebx, [esp + 0x20]
call fcn.004747c0
mov byte [esp + 0x10c], 1
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
xor ebx, ebx
cmp eax, ebx
jle 0x466436
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4664af
cmp ecx, eax
jg 0x4664af
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x466436
push 0x5c
lea edi, [esp + 0x24]
call fcn.00404400
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x10c], 2
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
lea edi, [esp + 0x1c]
mov byte [esp + 0x10c], 3
call fcn.004035d0
call fcn.0040cbf0
mov eax, dword [0x5fe584]
mov eax, dword [eax + 0x434]
cmp eax, 2
mov dword [0x5fe580], 1
je 0x4664b9
cmp eax, 8
je 0x4664b9
push 0xa
push str.phrase.ini
mov eax, edi
push eax
jmp 0x4664c5
push 0x80070057
call fcn.00404550
push 0xe
push 0x5c19b8
lea ecx, [esp + 0x24]
push ecx
call fcn.00403fc0
lea eax, [esp + 0x24]
lea edi, [esp + 0x38]
call fcn.004035d0
push 0xa
push str.phrase.ini
mov edx, edi
push edx
call fcn.00403fc0
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x90]
mov byte [esp + 0x10c], 4
mov edi, dword [esp + 0x38]
push eax
call fcn.004d1580
push edi
mov byte [esp + 0x110], 5
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4665ee
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
push ecx
call fcn.004d1580
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x110], 6
push str.Default
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
call fcn.004d1ab0
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, edi
cmp esi, ebx
je 0x46659d
cmp esi, ebp
je 0x46659d
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea edi, [esp + 0x18]
call fcn.004035d0
mov ecx, dword [esp + 0x114]
push ecx
mov edx, edi
push edx
call fcn.00465600
add esp, 8
jmp 0x466570
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x110], 5
call fcn.004d1650
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x110], 4
call fcn.004d1650
mov byte [esp + 0x10c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x466969
mov ecx, dword [eax]
push eax
jmp 0x466962
push str.Version
lea ecx, [esp + 0x94]
push ecx
call fcn.004d1cc0
cmp eax, ebx
jne 0x46675b
or ebp, 0xffffffff
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], ebx
lea edx, [esp + 0x54]
push edx
lea eax, [ebp + 2]
mov ecx, edi
mov byte [esp + 0x110], 7
call fcn.004d0930
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x58]
call fcn.004d05c0
test eax, eax
je 0x466677
mov ecx, dword [esp + 0x114]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00465600
add esp, 8
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x58]
call fcn.004d05c0
test eax, eax
jne 0x466650
lea esi, [esp + 0x6c]
call fcn.004d04e0
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.004d04e0
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x110], 4
call fcn.004d1650
mov byte [esp + 0x10c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4666cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4666f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x10c], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466717
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46673e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10c], ebp
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jmp 0x466a00
lea ecx, [esp + 0x28]
push ecx
push str.Custom
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
call fcn.004d1ab0
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
lea ebx, [ebx]
cmp esi, ebx
je 0x4667bd
cmp esi, ebp
je 0x4667bd
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea edi, [esp + 0x18]
call fcn.004035d0
mov eax, dword [esp + 0x114]
push eax
mov ecx, edi
push ecx
call fcn.00465600
add esp, 8
jmp 0x466790
lea edx, [esp + 0x28]
push edx
push str.Default
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
call fcn.004d1ab0
push str.DefaultVersion
lea ecx, [esp + 0x94]
push ecx
call fcn.004d1cc0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x50], ebx
mov byte [esp + 0x10c], 8
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x466879
cmp esi, dword [esp + 0x30]
je 0x466879
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea edi, [esp + 0x18]
call fcn.004035d0
mov ebp, dword [esp + 0x18]
push 4
push str.__D:
push ebp
call fcn.0057c5c6
add esp, 0xc
test eax, eax
jne 0x466822
lea edi, [ebp + 8]
push edi
lea ecx, [esp + 0x40]
call fcn.00468e80
cmp eax, ebx
jne 0x466874
mov eax, edi
lea ebx, [esp + 0x3c]
call fcn.00468ca0
xor ebx, ebx
jmp 0x466822
mov dword [eax + 4], ebx
jmp 0x466822
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xc8]
push edx
call fcn.004d1580
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x110], 9
push str.Default
lea ecx, [esp + 0xd0]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
call fcn.004d1ab0
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
test esi, esi
je 0x466900
cmp esi, ebx
je 0x466900
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea edi, [esp + 0x18]
call fcn.004035d0
mov ebp, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x40]
call fcn.00468e80
test eax, eax
jne 0x4668c1
mov edx, dword [esp + 0x114]
push edx
mov eax, edi
push eax
call fcn.00465600
add esp, 8
jmp 0x4668c1
lea ecx, [esp + 0xc8]
push ecx
mov byte [esp + 0x110], 8
call fcn.004d1650
lea edi, [esp + 0x3c]
call fcn.004af2c0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x46692f
push eax
call fcn.0057876f
add esp, 4
lea edx, [esp + 0x90]
push edx
mov byte [esp + 0x110], 4
call fcn.004d1650
add ebp, 0xfffffff0
mov byte [esp + 0x10c], 3
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x466969
mov ecx, dword [ebp]
push ebp
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466991
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10c], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4669b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4669e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466a0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 4