Function at 0x498cd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a801
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0xe4]
call fcn.004a6ea0
mov dword [ebp - 4], 1
push 0x58a148
lea eax, [ebp - 0xf8]
push eax
call fcn.004990c0
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x134], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x134]
push edx
lea eax, [ebp - 0xfc]
push eax
call fcn.00411930
add esp, 0xc
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
call fcn.00415f60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xf1], al
lea ecx, [ebp - 0xfc]
call fcn.00415e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf8]
call fcn.00415e20
movzx ecx, byte [ebp - 0xf1]
test ecx, ecx
je 0x498dd4
push 0x58a164
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov edx, dword [ebp - 0x12c]
or edx, 1
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.004a6ed0
mov eax, dword [ebp + 8]
jmp 0x4990a3
push 0
push 0x74
push 0x58a174
lea eax, [ebp - 0x104]
push eax
call fcn.004990c0
add esp, 4
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x140], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x140]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00411930
add esp, 0xc
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x148]
call fcn.00415f60
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0xe4]
call fcn.004a7240
mov ecx, eax
call fcn.004a6d90
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xfd], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x108]
call fcn.00415e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.00415e20
movzx ecx, byte [ebp - 0xfd]
test ecx, ecx
je 0x498ebf
push 0x58a190
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov edx, dword [ebp - 0x12c]
or edx, 1
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.004a6ed0
mov eax, dword [ebp + 8]
jmp 0x4990a3
lea ecx, [ebp - 0x14]
call fcn.00415d60
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0xc]
push eax
push 0x58a1a0
lea ecx, [ebp - 0x14]
push ecx
call fcn.004171c0
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
call fcn.00415f60
push eax
lea edx, [ebp - 0xec]
push edx
lea ecx, [ebp - 0xe4]
call fcn.004aa490
lea ecx, [ebp - 0x11c]
call fcn.004a8f70
push eax
lea ecx, [ebp - 0xec]
call fcn.004a9170
movzx eax, al
test eax, eax
je 0x498fc3
push str..ini
lea ecx, [ebp - 0x120]
call fcn.00415da0
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x150]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xf0]
push ecx
call fcn.0043b3d0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x120]
call fcn.00415e20
lea ecx, [ebp - 0xf0]
call fcn.0043b2a0
push eax
mov ecx, dword [ebp + 8]
call fcn.00415d80
mov edx, dword [ebp - 0x12c]
or edx, 1
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xf0]
call fcn.00415e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00415e20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.004a6ed0
mov eax, dword [ebp + 8]
jmp 0x4990a3
push 0x58a1dc
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0xec]
call fcn.004a9020
mov ecx, eax
call fcn.004a3e10
mov ecx, eax
call fcn.004a35d0
push eax
lea ecx, [ebp - 0x18]
call fcn.00415da0
mov byte [ebp - 4], 9
push 0x2f
lea ecx, [ebp - 0x18]
call fcn.004586b0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x499057
push str.enu.ini
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov edx, dword [ebp - 0x12c]
or edx, 1
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call fcn.00415e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00415e20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.004a6ed0
mov eax, dword [ebp + 8]
jmp 0x4990a3
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004118f0
mov edx, dword [ebp - 0x12c]
or edx, 1
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call fcn.00415e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00415e20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.004a6ed0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret