Function at 0x402ad0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428568
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4371bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], 0
mov dword [ebp - 4], 2
cmp dword [esi + 0x14], 0x10
jb 0x402b1c
mov esi, dword [esi]
test esi, esi
je 0x402b74
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b25
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x414], eax
cmp eax, 0x3fffffff
jg 0x402b74
add eax, eax
call fcn.00411200
mov ebx, esp
test ebx, ebx
je 0x402b74
push dword [ebp - 0x414]
xor eax, eax
push ebx
push 0xffffffffffffffff
push esi
push eax
push 0x3a8
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp - 0x418], eax
jmp 0x402b7e
mov dword [ebp - 0x418], 0
cmp dword [ebp + 0x20], 0x10
lea esi, [ebp + 0xc]
cmovae esi, dword [ebp + 0xc]
test esi, esi
je 0x402bde
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b92
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x414], eax
cmp eax, 0x3fffffff
jg 0x402bde
add eax, eax
call fcn.00411200
mov ebx, esp
test ebx, ebx
je 0x402bde
push dword [ebp - 0x414]
xor eax, eax
push ebx
push 0xffffffffffffffff
push esi
push eax
push 3
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp - 0x414], eax
jmp 0x402be8
mov dword [ebp - 0x414], 0
cmp dword [ebp + 0x38], 0x10
lea esi, [ebp + 0x24]
cmovae esi, dword [ebp + 0x24]
test esi, esi
je 0x402c49
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c00
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x402c49
lea eax, [ebx + ebx]
call fcn.00411200
mov eax, esp
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x402c49
push ebx
push eax
push 0xffffffffffffffff
xor ecx, ecx
push esi
push ecx
push 3
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x41c]
jmp 0x402c4b
xor ebx, ebx
cmp dword [ebp + 0x50], 0x10
lea esi, [ebp + 0x3c]
cmovae esi, dword [ebp + 0x3c]
test esi, esi
je 0x402cb2
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c60
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x41c], eax
cmp eax, 0x3fffffff
jg 0x402cb2
add eax, eax
call fcn.00411200
mov eax, esp
mov dword [ebp - 0x420], eax
test eax, eax
je 0x402cb2
push dword [ebp - 0x41c]
xor ecx, ecx
push eax
push 0xffffffffffffffff
push esi
push ecx
push 3
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x420]
jmp 0x402cb4
xor esi, esi
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00413760
add esp, 0xc
lea eax, [ebp - 0x410]
push dword [ebp - 0x418]
push 0x200
push eax
push esi
push ebx
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x402d69
push 0xffffffffffffffff
mov dword [edi + 0x10], eax
mov ecx, edi
mov dword [edi + 0x14], 0xf
push eax
mov byte [edi], al
lea eax, [ebp + 0x3c]
push eax
call fcn.00401a00
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x402d1d
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00401d00
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
cmp eax, 0x10
jb 0x402d44
inc eax
lea ecx, [ebp + 0x24]
push eax
push dword [ebp + 0x24]
call fcn.00401d00
mov ecx, dword [ebp + 0x50]
mov dword [ebp + 0x38], 0xf
mov dword [ebp + 0x34], 0
mov byte [ebp + 0x24], 0
cmp ecx, 0x10
jb 0x402e56
inc ecx
push ecx
jmp 0x402e4b
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d72
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x402dc0
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.00411200
mov esi, esp
test esi, esi
je 0x402dc0
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, eax
neg edx
sbb edx, edx
and edx, esi
jmp 0x402dc2
xor edx, edx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x402ddc
xor ecx, ecx
jmp 0x402dea
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402de1
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.00401710
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x402e08
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00401d00
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
cmp eax, 0x10
jb 0x402e2f
inc eax
lea ecx, [ebp + 0x24]
push eax
push dword [ebp + 0x24]
call fcn.00401d00
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x38], 0xf
mov dword [ebp + 0x34], 0
mov byte [ebp + 0x24], 0
cmp eax, 0x10
jb 0x402e56
inc eax
push eax
push dword [ebp + 0x3c]
lea ecx, [ebp + 0x3c]
call fcn.00401d00
mov eax, edi
lea esp, [ebp - 0x434]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004107d4
mov esp, ebp
pop ebp
ret 0x4c