Function at 0x412980
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x58870b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0xb8]
mov esi, dword [ebx + 0x118]
mov edi, dword [esp + 0xb4]
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x118]
mov dword [esp + 0x18], eax
cmp esi, dword [ebx + 0x11c]
je 0x412a1e
mov edi, edi
cmp dword [edi + 0x14], 8
jb 0x4129fa
mov eax, dword [edi]
jmp 0x4129fc
mov eax, edi
push dword [edi + 0x10]
push eax
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.0040d0c0
test eax, eax
je 0x412b2e
add esi, 0x1c
cmp esi, dword [ebx + 0x11c]
jne 0x4129f0
xor eax, eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
mov dword [esp + 0xac], eax
mov word [esp + 0x58], 0x101
mov dword [esp + 0xac], 1
lea eax, [esp + 0x40]
cmp eax, edi
je 0x412a72
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00404960
mov eax, dword [esp + 0x14]
mov byte [esp + 0x59], al
xor eax, eax
push 0x3e
push eax
mov word [esp + 0x64], ax
lea eax, [esp + 0x66]
push eax
call fcn.0056cbb0
lea eax, [ebx + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x412a9c
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x412aa4
mov edi, dword [edi]
cmp byte [esp + 0x14], 0
mov ecx, 0x5a9174
push eax
push 0x20
lea eax, [esp + 0x64]
push eax
mov eax, 0x5a916c
cmove eax, ecx
push eax
push edi
push str.RCPackagesIni
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov byte [esp + 0xac], 2
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
cmp word [esp + 0x5c], ax
jne 0x412b51
xor ecx, ecx
jmp 0x412b6f
cmp ebp, esi
je 0x412b3e
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebp
call fcn.00404960
movzx eax, byte [esi + 0x18]
mov byte [ebp + 0x18], al
movzx eax, byte [esi + 0x19]
mov byte [ebp + 0x19], al
jmp 0x412ce7
lea ecx, [esp + 0x5c]
lea edx, [ecx + 2]
jmp 0x412b60
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412b60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x24]
call fcn.00404a80
mov byte [esp + 0xac], 3
lea eax, [esp + 0x34]
push eax
mov edx, 0x2c
lea ecx, [esp + 0x20]
call fcn.004b5870
add esp, 4
mov byte [esp + 0xac], 2
cmp dword [esp + 0x30], 8
jb 0x412bb7
push dword [esp + 0x1c]
call fcn.00564de3
add esp, 4
mov ebx, dword [esp + 0x38]
xor eax, eax
mov edi, dword [esp + 0x34]
mov ecx, ebx
mov word [esp + 0x1c], ax
sub ecx, edi
mov eax, 0x2aaaaaab
mov dword [esp + 0x30], 7
imul ecx
mov dword [esp + 0x2c], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x412c23
push 1
push 0x5a88b0
push dword [edi + 0x10]
push ecx
mov ecx, edi
call fcn.0040d0c0
push 1
test eax, eax
lea ecx, [edi + 0x18]
push 0x5a88b0
setne byte [esp + 0x61]
push dword [ecx + 0x10]
push ecx
call fcn.0040d0c0
test eax, eax
setne byte [esp + 0x58]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
call fcn.004140d0
lea eax, [esp + 0x40]
cmp ebp, eax
je 0x412c45
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
call fcn.00404960
movzx eax, byte [esp + 0x58]
mov byte [ebp + 0x18], al
movzx eax, byte [esp + 0x59]
mov byte [ebp + 0x19], al
mov byte [esp + 0xac], 1
test edi, edi
je 0x412cb2
mov esi, edi
cmp edi, ebx
je 0x412c91
cmp dword [esi + 0x14], 8
jb 0x412c77
push dword [esi]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, ebx
jne 0x412c67
push edi
call fcn.00564de3
add esp, 4
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xac], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x412cd0
push dword [esp + 0x40]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
mov al, 1
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00564de8
add esp, 0x9c
ret 0xc