Function at 0x408510
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x4f6fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x4f832a]
mov byte [ebp - 0x304], al
push 0xfe
push 0
lea ecx, [ebp - 0x303]
push ecx
call fcn.004b6780
add esp, 0xc
mov dl, byte [0x4f832b]
mov byte [ebp - 0x504], dl
push 0xfe
push 0
lea eax, [ebp - 0x503]
push eax
call fcn.004b6780
add esp, 0xc
mov cl, byte [0x4f832c]
mov byte [ebp - 0x204], cl
push 0xfe
push 0
lea edx, [ebp - 0x203]
push edx
call fcn.004b6780
add esp, 0xc
mov al, byte [0x4f832d]
mov byte [ebp - 0x404], al
push 0xfe
push 0
lea ecx, [ebp - 0x403]
push ecx
call fcn.004b6780
add esp, 0xc
mov dl, byte [0x4f832e]
mov byte [ebp - 0x104], dl
push 0xfe
push 0
lea eax, [ebp - 0x103]
push eax
call fcn.004b6780
add esp, 0xc
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x50c], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00429ab0
add esp, 4
push 0x4d486c
mov edx, dword [ebp + 8]
push edx
push 0x4d4878
lea eax, [ebp - 0x204]
push eax
call fcn.004b6e08
add esp, 0x10
call fcn.0049ef40
lea ecx, [ebp - 0x204]
push ecx
push 0xff
lea edx, [ebp - 0x404]
push edx
push 0x4f832f
push 0x4fea80
push 0x4d4880
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x508], eax
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [ebp + eax - 0x404]
test ecx, ecx
jne 0x40866f
mov dword [ebp - 0x508], 1
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x404]
push eax
call fcn.004b5e60
add esp, 8
lea ecx, [ebp - 0x404]
push ecx
call fcn.0042e130
add esp, 4
push 0x4d488c
lea edx, [ebp - 0x404]
push edx
call fcn.004b5e70
add esp, 8
cmp dword [ebp - 0x508], 0
jne 0x4086db
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x304]
push ecx
push 0x4d48a0
push 0
call fcn.004766d0
add esp, 0x10
push 0x4f8330
push 0x4f8331
push 0x4d48d0
lea edx, [ebp - 0x304]
push edx
call fcn.00458fb0
add esp, 0x10
jmp 0x40899c
push 0x4f8700
lea eax, [ebp - 0x104]
push eax
call fcn.004b5e60
add esp, 8
cmp dword [ebp + 0xc], 0
jne 0x408708
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.004b5e60
add esp, 8
lea eax, [ebp - 0x104]
push eax
push 0x4d48e0
lea ecx, [ebp - 0x404]
push ecx
push 0x4d48e8
push 0x4d48f0
push str.Reset_Paths:_s_sFrom:__s_sTo:__s
lea edx, [ebp - 0x504]
push edx
call fcn.004b6e08
add esp, 0x1c
cmp dword [ebp + 0xc], 1
jne 0x408870
lea eax, [ebp - 0x304]
push eax
push str.MSG_From_
push 0
call fcn.00475ed0
add esp, 0xc
push 0x4d492c
lea ecx, [ebp - 0x304]
push ecx
call fcn.004b5e70
add esp, 8
lea edx, [ebp - 0x504]
push edx
push 0x4d4930
push 0
call fcn.00475ed0
add esp, 0xc
push 0x4d493c
lea eax, [ebp - 0x504]
push eax
call fcn.004b5e70
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x504]
push edx
push 0x4f8332
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x304]
push ecx
push 0x4f8333
push 0x4d4944
push 0x4d495c
push 0x4d4994
call fcn.00409fa0
add esp, 0x24
mov dword [ebp - 0x508], eax
lea edx, [ebp - 0x104]
push edx
call fcn.004b5f60
add esp, 4
movsx eax, byte [ebp + eax - 0x105]
cmp eax, 0x5c
je 0x40880a
push 0x4d49b8
lea ecx, [ebp - 0x104]
push ecx
call fcn.004b5e70
add esp, 8
mov dword [ebp - 0x50c], 0
cmp dword [ebp - 0x508], 1
jne 0x408861
lea edx, [ebp - 0x104]
push edx
call fcn.00419490
add esp, 4
mov dword [ebp - 0x508], eax
cmp dword [ebp - 0x508], 0
jne 0x408861
push 0x4f8334
push 0x4f8335
push 0x4d49d0
push str.MSG_InvalidPath
call fcn.00458fb0
add esp, 0x10
mov dword [ebp - 0x50c], 1
cmp dword [ebp - 0x50c], 1
je 0x408743
jmp 0x40887a
mov dword [ebp - 0x508], 1
cmp dword [ebp - 0x508], 1
jne 0x40899c
push 0x4d4a08
lea eax, [ebp - 0x104]
push eax
push 0x4d4a10
lea ecx, [ebp - 0x304]
push ecx
call fcn.004b6e08
add esp, 0x10
push 0x4d4a44
lea edx, [ebp - 0x104]
push edx
push 0x4d4a4c
lea eax, [ebp - 0x504]
push eax
call fcn.004b6e08
add esp, 0x10
lea ecx, [ebp - 0x204]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x508], eax
push 0x4f8700
call fcn.0049cb30
add esp, 4
test eax, eax
jne 0x408917
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x304]
push eax
push 0x4fea80
push 0x4d4ac4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x508], eax
jmp 0x408983
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0x4feb80
push 0x4d4acc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x508], eax
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x304]
push ecx
push 0x4fea80
push 0x4d4ad4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x508], eax
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x504]
push eax
push 0x4fe980
push 0x4d4adc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x508], eax
lea ecx, [ebp - 0x204]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x508], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6253
mov esp, ebp
pop ebp
ret