Function at 0x478400
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x57c54c]
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.00412f10
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4784ba
movaps xmm0, xmmword [0x564980]
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.00412f10
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x47850d
movaps xmm0, xmmword [0x564980]
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.00412f10
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x478560
movaps xmm0, xmmword [0x564980]
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.00412f10
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4785b6
movaps xmm0, xmmword [0x564980]
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.005122db
add esp, 8
test eax, eax
je 0x47860a
xor bl, bl
jmp 0x47863e
push dword [ebp - 0xc0]
lea eax, [ebp - 0x70]
mov bl, 1
push eax
call fcn.005122db
add esp, 8
test eax, eax
je 0x47863e
push dword [ebp - 0x28]
lea eax, [ebp - 0x94]
push eax
call fcn.005122db
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 0x478644
sub ecx, edx
cmp ecx, 0x20
jne 0x478751
test bl, bl
je 0x4786ac
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 0x564384
push eax
call fcn.00477fc0
mov al, byte [ebp - 0xbc]
add esp, 0xc
mov byte [esi + 0x580644], al
inc esi
cmp esi, 0x10
jl 0x478670
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 0x4786c2
lea esi, [ebp - 0x94]
sub edx, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4786d4
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 0x4786f0
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 0x478753
cmp byte [ebp + 0x20], 0
je 0x478753
test esi, esi
je 0x47873d
test edx, edx
jne 0x478753
mov al, cl
cmp edi, 3
je 0x478753
cmp edi, ebx
jb 0x478753
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.00500b45
mov esp, ebp
pop ebp
ret 0x24