Function at 0x4712d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x24]
push edi
mov dword [ebp - 0xc8], eax
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
mov byte [ebp - 0x50], 0
movups xmmword [ebp - 0x70], xmm0
mov byte [ebp - 0x74], 0
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x98], 0
movups xmmword [ebp - 0x94], xmm0
movups xmmword [ebp - 0x84], xmm0
movups xmmword [ebp - 0xb8], xmm0
movups xmmword [ebp - 0xa8], xmm0
call fcn.0040e6f0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x47138a
movaps xmm0, xmmword [0x55b440]
lea ecx, [ebp - 0x20]
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x72745365
mov dword [ebp - 0xc], 0x41676e69
mov byte [ebp - 8], 0
call edi
mov dword [ebx + 0x174], eax
push esi
push 0x21
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebx + 0x174]
push 0
push str.config1
push str.Profile
call eax
call fcn.0040e6f0
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4713dd
movaps xmm0, xmmword [0x55b440]
lea ecx, [ebp - 0x20]
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x72745365
mov dword [ebp - 0xc], 0x41676e69
mov byte [ebp - 8], 0
call edi
mov dword [ebx + 0x174], eax
push esi
push 0x21
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebx + 0x174]
push 0
push str.config2
push str.Profile
call eax
call fcn.0040e6f0
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x471430
movaps xmm0, xmmword [0x55b440]
lea ecx, [ebp - 0x20]
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x72745365
mov dword [ebp - 0xc], 0x41676e69
mov byte [ebp - 8], 0
call edi
mov dword [ebx + 0x174], eax
push esi
push 0x21
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebx + 0x174]
push 0
push str.config3
push str.Profile
call eax
call fcn.0040e6f0
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x471486
movaps xmm0, xmmword [0x55b440]
lea ecx, [ebp - 0x20]
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x72745365
mov dword [ebp - 0xc], 0x41676e69
mov byte [ebp - 8], 0
call edi
mov dword [ebx + 0x174], eax
push esi
push 0x21
lea eax, [ebp - 0xb8]
push eax
mov eax, dword [ebx + 0x174]
push 0
push str.config4
push str.Profile
call eax
push esi
push 0
push str.config5
push str.Profile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00509a8b
add esp, 8
test eax, eax
je 0x4714da
xor bl, bl
jmp 0x47150e
push dword [ebp - 0xc0]
lea eax, [ebp - 0x70]
mov bl, 1
push eax
call fcn.00509a8b
add esp, 8
test eax, eax
je 0x47150e
push dword [ebp - 0x28]
lea eax, [ebp - 0x94]
push eax
call fcn.00509a8b
xor ecx, ecx
movzx ebx, bl
add esp, 8
test eax, eax
cmovne ebx, ecx
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471514
sub ecx, edx
cmp ecx, 0x20
jne 0x471621
test bl, bl
je 0x47157c
xor eax, eax
xor esi, esi
mov word [ebp - 0x24], ax
mov dword [ebp - 0xbc], eax
nop dword [eax + eax]
movsx eax, byte [ebp + esi*2 - 0x4c]
mov word [ebp - 0x28], ax
movsx eax, byte [ebp + esi*2 - 0x4b]
mov word [ebp - 0x26], ax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x28]
push 0x55afcc
push eax
call fcn.00470e90
mov al, byte [ebp - 0xbc]
add esp, 0xc
mov byte [esi + 0x5764b0], al
inc esi
cmp esi, 0x10
jl 0x471540
movzx eax, byte [ebp + 0x1c]
lea edx, [ebp - 0x70]
movzx edi, byte [ebp + 0x18]
lea ecx, [edx + 1]
add edi, eax
movzx eax, byte [ebp + 0x20]
add edi, eax
mov al, byte [edx]
inc edx
test al, al
jne 0x471592
lea esi, [ebp - 0x94]
sub edx, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4715a4
sub esi, ecx
lea ecx, [ebp - 0xb8]
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4715c0
sub ecx, dword [ebp - 0x28]
xor eax, eax
cmp eax, ecx
sbb ecx, ecx
neg ecx
cmp eax, esi
sbb eax, eax
neg eax
add ecx, eax
xor eax, eax
cmp eax, edx
sbb eax, eax
neg eax
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x28], eax
movzx eax, bl
mov ebx, dword [ebp - 0x28]
cmp edi, ebx
cmovbe ecx, eax
cmp dword [ebp - 0xc4], 0
mov al, cl
jne 0x471623
cmp byte [ebp + 0x20], 0
je 0x471623
test esi, esi
je 0x47160d
test edx, edx
jne 0x471623
mov al, cl
cmp edi, 3
je 0x471623
cmp edi, ebx
jb 0x471623
mov ecx, dword [ebp - 0xc8]
mov byte [ecx], 1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret 0x24