Function at 0x46b430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x20], ebx
call fcn.00429930
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x46b46f
push 0x80004005
call fcn.00402670
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebx + 0x8c]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.0046b790
add esp, 8
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46b4af
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.Language.00.ini
lea eax, [ebp - 0x14]
push 0x4849ec
push eax
mov byte [ebp - 4], 1
call fcn.00405230
add esp, 0xc
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46b4f2
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x10]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.004671c0
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x18]
test eax, eax
jne 0x46b589
push edi
lea eax, [ebp - 0x14]
push str.language_s
push eax
call fcn.00405230
mov esi, dword [ebp - 0x14]
push 0
push esi
call fcn.00469a30
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x46b54c
xor ecx, ecx
jmp 0x46b564
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b554
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00408f60
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46b589
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004671c0
add esp, 0xc
push dword [ebx + 0x20]
push dword [ebx + 0x9c]
push dword [ebp - 0x10]
call fcn.00467d20
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
test eax, eax
jne 0x46b612
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46b5c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b5e1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x46b5ff
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x88], eax
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46b634
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b651
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x46b66f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret