Function at 0x49ba30
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584701
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a8], ecx
call fcn.00402270
mov dword [ebp - 0x448], eax
xor eax, eax
mov word [ebp - 0x444], ax
push 0x40e
push 0
lea ecx, [ebp - 0x442]
push ecx
call fcn.00562540
add esp, 0xc
push 0x207
lea edx, [ebp - 0x444]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], 0
je 0x49bad8
cmp dword [ebp - 0x28], 0x7a
je 0x49bad8
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x598228
lea ecx, [ebp - 0x444]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x49bb03
push 0x410
lea edx, [ebp - 0x444]
push edx
call fcn.004020c0
add esp, 8
push 0x207
push 0x59824c
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea ecx, [ebp - 0x444]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49bb19
jmp 0x49bdee
mov byte [ebp - 0x18], 0
xor edx, edx
mov dword [ebp - 0x17], edx
mov word [ebp - 0x13], dx
mov byte [ebp - 0x11], dl
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
push 0x5945eb
lea ecx, [ebp - 0x468]
call fcn.00405ef0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
jne 0x49bb6b
mov dword [ebp - 0x4ac], 0
jmp 0x49bbcf
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3fffffff
jle 0x49bb90
mov dword [ebp - 0x4b0], 0
jmp 0x49bbc3
mov eax, dword [ebp - 0x1c]
shl eax, 1
call fcn.0056a8e0
mov dword [ebp - 0x4b4], esp
mov eax, dword [ebp - 0x448]
push eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x4b4]
push eax
call fcn.004022d0
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
mov dword [ebp - 0x4ac], ecx
mov edx, dword [ebp - 0x4ac]
push edx
push 8
lea eax, [ebp - 0x18]
push eax
push 0x5945fe
push str.FILE_READONLY
push 0x598284
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x49bc6c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x484]
call fcn.00405ef0
mov dword [ebp - 0x4b8], eax
mov edx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], edx
mov byte [ebp - 4], 1
push 0x598290
mov eax, dword [ebp - 0x4bc]
push eax
call fcn.00407960
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x49bc41
mov dword [ebp - 0x4c0], 0x598294
jmp 0x49bc4b
mov dword [ebp - 0x4c0], 0x598298
mov edx, dword [ebp - 0x4c0]
push edx
lea ecx, [ebp - 0x468]
call fcn.00407ee0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x484]
call fcn.00405f70
lea eax, [ebp - 0x444]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x49bc87
mov dword [ebp - 0x4c4], 0
jmp 0x49bceb
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3fffffff
jle 0x49bcac
mov dword [ebp - 0x4c8], 0
jmp 0x49bcdf
mov eax, dword [ebp - 0x1c]
shl eax, 1
call fcn.0056a8e0
mov dword [ebp - 0x4cc], esp
mov edx, dword [ebp - 0x448]
push edx
mov eax, dword [ebp - 0x1c]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x4cc]
push edx
call fcn.004022d0
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4c4], eax
mov ecx, dword [ebp - 0x4c4]
push ecx
push 8
lea edx, [ebp - 0x24]
push edx
push 0x5945ff
push str.FILE_HIDE
push 0x5982a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x49bd88
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00405ef0
mov dword [ebp - 0x4d0], eax
mov ecx, dword [ebp - 0x4d0]
mov dword [ebp - 0x4d4], ecx
mov byte [ebp - 4], 2
push 0x5982b4
mov edx, dword [ebp - 0x4d4]
push edx
call fcn.00407960
add esp, 8
movzx eax, al
test eax, eax
je 0x49bd5d
mov dword [ebp - 0x4d8], 0x5982b8
jmp 0x49bd67
mov dword [ebp - 0x4d8], 0x5982bc
mov ecx, dword [ebp - 0x4d8]
push ecx
lea ecx, [ebp - 0x468]
call fcn.00407ee0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a0]
call fcn.00405f70
lea ecx, [ebp - 0x468]
call fcn.0040e460
movzx edx, al
test edx, edx
je 0x49bdae
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.00405f70
jmp 0x49bdee
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4a4], esp
lea eax, [ebp - 0x468]
push eax
call fcn.00405f30
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp + 8]
call fcn.00406110
push eax
call fcn.0048ec00
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.00405f70
lea esp, [ebp - 0x4e0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret 4