Function at 0x4c0c40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x118
mov eax, dword [0x6feae4]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x24]
push edi
mov dword [esp + 0x24], eax
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x60], xmm0
mov byte [esp + 0x70], 0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x90], xmm0
mov byte [esp + 0xa0], 0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xc0], xmm0
mov byte [esp + 0xd0], 0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xf0], xmm0
mov byte [esp + 0x100], 0
call fcn.004c3180
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4c0d20
movaps xmm0, xmmword [0x6ead40]
lea eax, [esp + 0x2c]
push eax
push ecx
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x44], 0x72745365
mov dword [esp + 0x48], 0x41676e69
mov byte [esp + 0x4c], 0
call edi
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x174], eax
mov eax, ecx
mov eax, dword [eax + 0x174]
lea ecx, [esp + 0x50]
push esi
push 0x21
push ecx
push 0
push str.config1
push str.Profile
call eax
call fcn.004c3180
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4c0d81
movaps xmm0, xmmword [0x6ead40]
lea eax, [esp + 0x2c]
push eax
push ecx
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x44], 0x72745365
mov dword [esp + 0x48], 0x41676e69
mov byte [esp + 0x4c], 0
call edi
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x174], eax
mov eax, ecx
mov eax, dword [eax + 0x174]
lea ecx, [esp + 0x80]
push esi
push 0x21
push ecx
push 0
push str.config2
push str.Profile
call eax
call fcn.004c3180
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4c0de5
movaps xmm0, xmmword [0x6ead40]
lea eax, [esp + 0x2c]
push eax
push ecx
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x44], 0x72745365
mov dword [esp + 0x48], 0x41676e69
mov byte [esp + 0x4c], 0
call edi
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x174], eax
mov eax, ecx
mov eax, dword [eax + 0x174]
lea ecx, [esp + 0xb0]
push esi
push 0x21
push ecx
push 0
push str.config3
push str.Profile
call eax
call fcn.004c3180
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4c0e49
movaps xmm0, xmmword [0x6ead40]
lea eax, [esp + 0x2c]
push eax
push ecx
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x44], 0x72745365
mov dword [esp + 0x48], 0x41676e69
mov byte [esp + 0x4c], 0
call edi
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x174], eax
mov eax, ecx
mov eax, dword [eax + 0x174]
lea ecx, [esp + 0xe0]
push esi
push 0x21
push ecx
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 [esp + 0x28]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xe4]
push eax
call fcn.006438dd
add esp, 8
test eax, eax
je 0x4c0e9f
xor dl, dl
mov dword [esp + 0x14], edx
jmp 0x4c0eec
push dword [esp + 0x1c]
mov al, 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x84]
push eax
call fcn.006438dd
add esp, 8
test eax, eax
je 0x4c0ee8
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
mov byte [esp + 0x1f], 1
push eax
call fcn.006438dd
movzx edx, byte [esp + 0x23]
xor ecx, ecx
add esp, 8
test eax, eax
cmovne edx, ecx
mov dword [esp + 0x14], edx
jmp 0x4c0eec
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c0ef3
sub ecx, esi
cmp ecx, 0x20
jne 0x4c1004
test dl, dl
je 0x4c0f5b
xor eax, eax
xor esi, esi
mov word [esp + 0x4c], ax
mov dword [esp + 0x28], eax
nop word [eax + eax]
movsx eax, byte [esp + esi*2 + 0x50]
mov word [esp + 0x48], ax
movsx eax, byte [esp + esi*2 + 0x51]
mov word [esp + 0x4a], ax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4c]
push 0x6e3b30
push eax
call fcn.004c0650
mov al, byte [esp + 0x34]
add esp, 0xc
mov byte [esi + 0x7061f4], al
inc esi
cmp esi, 0x10
jl 0x4c0f20
movzx eax, byte [ebp + 0x1c]
lea edx, [esp + 0x80]
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 0x4c0f75
lea esi, [esp + 0xb0]
sub edx, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c0f88
sub esi, ecx
lea ecx, [esp + 0xe0]
lea eax, [ecx + 1]
mov dword [esp + 0x48], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c0fa0
sub ecx, dword [esp + 0x48]
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 [esp + 0x28], eax
mov eax, dword [esp + 0x14]
cmp edi, dword [esp + 0x28]
movzx eax, al
cmovbe ecx, eax
cmp dword [esp + 0x20], 0
mov al, cl
jne 0x4c1006
cmp byte [ebp + 0x20], 0
je 0x4c1006
test esi, esi
je 0x4c0ff0
test edx, edx
jne 0x4c1006
mov al, cl
cmp edi, 3
je 0x4c1006
cmp edi, dword [esp + 0x28]
jb 0x4c1006
mov ecx, dword [esp + 0x24]
mov byte [ecx], 1
xor al, al
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
call fcn.0060963b
mov esp, ebp
pop ebp
ret 0x24