Function at 0x49bf30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56adec
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], 0
push 0x58a8b0
lea eax, [ebp - 0xec]
push eax
call fcn.004990c0
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x124]
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.00411930
add esp, 0xc
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
call fcn.00415f60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xe5], al
lea ecx, [ebp - 0xf0]
call fcn.00415e20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xec]
call fcn.00415e20
movzx ecx, byte [ebp - 0xe5]
test ecx, ecx
je 0x49c01d
push 0x58a8cc
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x11c]
or edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp + 8]
jmp 0x49c214
lea ecx, [ebp - 0xdc]
call fcn.004a6ea0
mov dword [ebp - 4], 2
push 0
push 0x74
push 0x58a8d4
lea eax, [ebp - 0xf8]
push eax
call fcn.004990c0
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x130]
push edx
lea eax, [ebp - 0xfc]
push eax
call fcn.00411930
add esp, 0xc
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x138], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x138]
call fcn.00415f60
push eax
lea edx, [ebp - 0x108]
push edx
lea ecx, [ebp - 0xdc]
call fcn.004a7240
mov ecx, eax
call fcn.004a6d90
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xf1], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xfc]
call fcn.00415e20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf8]
call fcn.00415e20
movzx ecx, byte [ebp - 0xf1]
test ecx, ecx
je 0x49c11a
push 0x58a8f0
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov edx, dword [ebp - 0x11c]
or edx, 1
mov dword [ebp - 0x11c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.004a6ed0
mov eax, dword [ebp + 8]
jmp 0x49c214
lea ecx, [ebp - 0x10]
call fcn.00415d60
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0xc]
push eax
push str.__root_LANG__VALUE_s_
lea ecx, [ebp - 0x10]
push ecx
call fcn.004171c0
add esp, 0xc
push 0
lea ecx, [ebp - 0x10]
call fcn.00415f60
push eax
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 0xdc]
call fcn.004aa490
lea ecx, [ebp - 0x110]
call fcn.004a8f70
push eax
lea ecx, [ebp - 0xe4]
call fcn.004a9170
movzx eax, al
test eax, eax
je 0x49c1b2
push 0x58a92c
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov ecx, dword [ebp - 0x11c]
or ecx, 1
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00415e20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.004a6ed0
mov eax, dword [ebp + 8]
jmp 0x49c214
push str.ITEM
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xe4]
call fcn.004a9020
mov ecx, eax
call fcn.004a3e10
mov ecx, eax
call fcn.004a35d0
push eax
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov ecx, dword [ebp - 0x11c]
or ecx, 1
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00415e20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.004a6ed0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret