Function at 0x403eef
Capabilities:
Read .ini file

Disassembly:
push 0x68
push 0x49e588
call fcn.00438100
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x54], 0x4752434d
xor ecx, ecx
inc ecx
mov dword [ebp - 0x50], ecx
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ebx, ebx
jne 0x403f42
mov eax, ecx
jmp 0x404224
mov eax, dword [esi]
test eax, eax
jne 0x404224
mov ecx, dword [ebp - 0x64]
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x403f54
sub ecx, edx
sar ecx, 1
lea eax, [ecx*4 + 3]
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], edi
call fcn.00438160
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x403fc1
test eax, eax
jne 0x403fcf
mov eax, 0x3e9
jmp 0x404224
mov byte [eax], 0x5f
mov dword [ebp - 0x68], edi
lea ecx, [eax + 1]
mov dword [ebp - 0x5c], ecx
lea eax, [ebp - 0x68]
push eax
push edi
mov eax, dword [ebp - 0x78]
dec eax
push eax
push ecx
push 0xffffffffffffffff
push dword [ebp - 0x64]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x404002
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404224
cmp dword [ebp - 0x68], 0
je 0x404012
mov eax, 0x574
jmp 0x404224
push dword [esi + 8]
push 0x24
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x6c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
mov edx, dword [ebp - 0x58]
test eax, eax
jne 0x40404a
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], 1
test edx, edx
jne 0x404046
mov ecx, 0x1400
mov dword [ebp - 0x4c], ecx
jmp 0x40404d
mov ecx, dword [ebx]
jmp 0x404041
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x60], 0
je 0x40405e
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x60]
mov dword [edx], eax
mov edx, dword [ebp - 0x58]
test edx, edx
jne 0x404079
cmp dword [ebp - 0x48], 1
jne 0x404072
lea eax, [ecx + ecx]
mov dword [ebx], eax
jmp 0x404222
mov dword [ebx], ecx
jmp 0x404222
mov eax, dword [ebx]
cmp eax, ecx
jae 0x404087
push 8
pop eax
jmp 0x404224
cmp dword [ebp - 0x44], 0
je 0x40415c
cmp dword [ebp - 0x48], 1
jne 0x404129
push ecx
mov ecx, esi
call fcn.00403df1
test al, al
je 0x40407f
push dword [esi + 8]
push dword [ebp - 0x4c]
push dword [esi + 0xc]
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x403ff7
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [esi + 0xc]
push ecx
push dword [ebp - 0x4c]
push dword [esi + 0xc]
call fcn.00404585
test eax, eax
jne 0x404224
mov eax, dword [ebx]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push 0xffffffffffffffff
push dword [esi + 0xc]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x404122
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, eax
mov dword [ebx], eax
mov eax, 0xea
jmp 0x404224
add eax, eax
jmp 0x40406b
mov dword [ebx], ecx
push dword [esi + 8]
push ecx
push edx
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x403ff7
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push ecx
push dword [ebp - 0x4c]
push ecx
call fcn.00404585
jmp 0x404224
mov edx, dword [ebp - 0x48]
sub edx, 1
mov dword [ebp - 0x60], edx
mov edx, dword [ebp - 0x58]
je 0x4041c0
sub dword [ebp - 0x60], 3
mov dword [ebx], ecx
push dword [esi + 8]
je 0x404190
push ecx
push edx
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x404222
jmp 0x403ff7
push 0x14
lea eax, [ebp - 0x30]
push eax
push 0x48e4f6
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x403ff7
lea eax, [ebp - 0x30]
push eax
call fcn.00449c59
pop ecx
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
jmp 0x404222
cmp eax, 2
jb 0x40407f
shr eax, 1
mov dword [ebp - 0x4c], eax
push eax
mov ecx, esi
call fcn.00403df1
test al, al
je 0x403fc5
push dword [esi + 8]
push dword [ebp - 0x4c]
push dword [esi + 0xc]
push 0x48e4f6
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x403ff7
mov eax, dword [ebx]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push 0xffffffffffffffff
push dword [esi + 0xc]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x403ff7
xor eax, eax
lea esp, [ebp - 0x88]
call fcn.00438149
ret 0x18