Function at 0x50cdd0
Capabilities:
Get common file path
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62beb8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a4], ecx
mov ecx, dword [ebp - 0x2a4]
call fcn.005c4bed
push 0x300
call fcn.005c4745
add esp, 4
mov dword [ebp - 0x28c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x28c], 0
je 0x50ce49
mov eax, dword [ebp - 0x2a4]
push eax
mov ecx, dword [ebp - 0x28c]
call fcn.0050d4f0
mov dword [ebp - 0x2a8], eax
jmp 0x50ce53
mov dword [ebp - 0x2a8], 0
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x288], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2a4]
mov eax, dword [ebp - 0x288]
mov dword [edx + 0x10d0], eax
call fcn.0041b910
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401580
mov dword [ebp - 4], 1
push 0x671f84
call fcn.0041b910
add eax, 4
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00404260
add esp, 0xc
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2a4]
mov ecx, dword [ecx + 0x10d0]
call fcn.0050e110
push 1
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [edx + 0x10d0]
call fcn.0050f380
push 1
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [eax + 0x10d0]
call fcn.0050e140
mov ecx, dword [ebp - 0x2a4]
mov dword [ecx + 0x10cc], 0
push 0x1000
push 0
mov edx, dword [ebp - 0x2a4]
add edx, 0xcc
push edx
call fcn.005e5330
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x671f8c
mov ecx, dword [ebp - 0x2a4]
add ecx, 0xc8
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00404260
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x24]
call fcn.005d6892
mov byte [ebp - 4], 4
push 0
push 0x671f98
lea ecx, [ebp - 0x24]
call fcn.005d691e
test eax, eax
je 0x50d14f
lea ecx, [ebp - 0x24]
call fcn.005d6696
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x24]
call fcn.005d6b4d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x284]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x290]
push eax
call fcn.0040ed60
add esp, 0xc
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
call fcn.00587e90
push eax
push 0x12c
lea ecx, [ebp - 0x27c]
push ecx
push 0x671f8a
push 0x671fa0
push 0x671fac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x290]
call fcn.00401620
lea ecx, [ebp - 0x280]
call fcn.00404aa0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x148]
call fcn.00404aa0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x27c]
push edx
lea ecx, [ebp - 0x280]
call fcn.00401640
push 0
push 0x671fb4
lea ecx, [ebp - 0x284]
call fcn.00414400
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
push eax
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x284]
call fcn.004571b0
mov dword [ebp - 0x2b0], eax
mov edx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x148]
call fcn.0040bb70
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x294]
call fcn.00401620
lea ecx, [ebp - 0x280]
call fcn.00401c10
test eax, eax
jne 0x50d0b8
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x280]
call fcn.0040bb70
push ecx
mov ecx, esp
mov dword [ebp - 0x298], esp
lea edx, [ebp - 0x148]
push edx
call fcn.00401580
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 4], 9
push ecx
mov ecx, esp
mov dword [ebp - 0x29c], esp
lea edx, [ebp - 0x280]
push edx
call fcn.00401580
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2a4]
call fcn.0050d1c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x148]
call fcn.00401620
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
call fcn.00401620
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x284]
call fcn.00401620
cmp dword [ebp - 0x140], 0
je 0x50cf7f
lea ecx, [ebp - 0x24]
call fcn.005d65c6
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x2a0], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.005d68b6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00401620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00401620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401620
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret