Function at 0x49c610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56af22
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x58aa00
lea eax, [ebp - 0xf4]
push eax
call fcn.004990c0
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x144]
push edx
lea eax, [ebp - 0xf8]
push eax
call fcn.00411930
add esp, 0xc
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
call fcn.00415f60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xed], al
lea ecx, [ebp - 0xf8]
call fcn.00415e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00415e20
movzx ecx, byte [ebp - 0xed]
test ecx, ecx
je 0x49c6d2
xor eax, eax
jmp 0x49ca0e
lea ecx, [ebp - 0xe4]
call fcn.004a6ea0
mov dword [ebp - 4], 1
push 0
push 0x74
push str.Language.xml
lea edx, [ebp - 0x100]
push edx
call fcn.004990c0
add esp, 4
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x150]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.00411930
add esp, 0xc
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x158]
call fcn.00415f60
push eax
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0xe4]
call fcn.004a7240
mov ecx, eax
call fcn.004a6d90
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0xf9], dl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x104]
call fcn.00415e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x100]
call fcn.00415e20
movzx eax, byte [ebp - 0xf9]
test eax, eax
je 0x49c7c3
mov dword [ebp - 0x114], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.004a6ed0
mov eax, dword [ebp - 0x114]
jmp 0x49ca0e
lea ecx, [ebp - 0x10]
call fcn.00415d60
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
push ecx
push str.__root_LANG__ITEM_s_
lea edx, [ebp - 0x10]
push edx
call fcn.004171c0
add esp, 0xc
push 0
lea ecx, [ebp - 0x10]
call fcn.00415f60
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xe4]
call fcn.004aa490
lea ecx, [ebp - 0x11c]
call fcn.004a8f70
push eax
lea ecx, [ebp - 0xec]
call fcn.004a9170
movzx ecx, al
test ecx, ecx
je 0x49c852
mov dword [ebp - 0x120], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00415e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.004a6ed0
mov eax, dword [ebp - 0x120]
jmp 0x49ca0e
push 0x58aa68
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0xec]
call fcn.004a9020
mov ecx, eax
call fcn.004a3e10
mov ecx, eax
call fcn.004a35d0
push eax
lea ecx, [ebp - 0x14]
call fcn.00415da0
mov byte [ebp - 4], 5
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x130]
push edx
call fcn.00498cd0
add esp, 8
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x160]
push ecx
push 0x58aa70
lea edx, [ebp - 0x134]
push edx
call fcn.004990c0
add esp, 4
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x168]
push ecx
lea edx, [ebp - 0x138]
push edx
call fcn.00411930
add esp, 0xc
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x170]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.0043b320
add esp, 0xc
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x178]
call fcn.00415f60
push eax
lea ecx, [ebp - 0x14]
call fcn.00415f60
push eax
call fcn.0049ce60
add esp, 0x18
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], edx
cmp dword [ebp - 0x17c], 0
ja 0x49c980
cmp dword [ebp - 0x180], 0
jbe 0x49c98c
mov dword [ebp - 0x184], 1
jmp 0x49c996
mov dword [ebp - 0x184], 0
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x13c]
call fcn.00415e20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x138]
call fcn.00415e20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x134]
call fcn.00415e20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x130]
call fcn.00415e20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00415e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00415e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.004a6ed0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret