Function at 0x416660
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44e989
mov eax, dword fs:[0]
push eax
sub esp, 0xfc0
mov eax, dword [0x46414c]
xor eax, esp
mov dword [esp + 0xfbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0xfd4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xfe4]
xor esi, esi
mov dword [esp + 0xfdc], esi
mov dword [esp + 0x24], esi
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x46ecec
mov dword [esp + 0x2c], ebp
call edx
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0xfdc], esi
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ebx, 1
mov ecx, 0x46ecec
mov dword [esp + 0x24], ebx
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0xfdc], ebx
mov eax, dword [edi + 0x2c]
lea esi, [esp + 0x14]
call fcn.004049a0
lea edi, [esp + 0x18]
mov byte [esp + 0xfdc], 2
call fcn.004050a0
mov byte [esp + 0xfdc], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41673b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
push 0x7d0
lea edx, [esp + 0x38]
push edx
push 0
push 0
push str.PRptApd
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x1c], 0
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x1c]
lea edx, [esp + edx*2 + 0x30]
mov byte [esp + 0xfdc], 3
test edx, edx
jne 0x41678f
xor eax, eax
jmp 0x4167a3
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416794
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.004053c0
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
je 0x416914
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
mov byte [esp + 0xfdc], 4
mov eax, dword [esp + 0x18]
push eax
push 0x45b7b0
push edi
lea ecx, [esp + 0x34]
push str.PRptApd
push ecx
call fcn.00414180
add esp, 0x14
mov byte [esp + 0xfdc], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x416856
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x416845
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x416845
call fcn.00401850
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x416838
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea esi, [ebp + 0x10]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x20], esi
jmp 0x416856
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x24]
call fcn.004053c0
mov esi, dword [esp + 0x20]
mov byte [esp + 0xfdc], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41687e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 0
jle 0x4168b4
push 1
push 0x45e43c
push ebp
call fcn.004016d0
mov eax, dword [edi - 0xc]
push eax
push edi
push ebp
call fcn.004016d0
push 1
push 0x45e50c
push ebp
call fcn.004016d0
mov eax, dword [esi - 0xc]
push eax
push esi
push ebp
call fcn.004016d0
mov eax, dword [edi - 0xc]
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax + 1]
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], edx
mov byte [esp + 0xfdc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0xfdc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x416761
lea eax, [edi - 0x10]
mov byte [esp + 0xfdc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xfdc], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416960
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0xfd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xfbc]
xor ecx, esp
call fcn.0042404d
add esp, 0xfcc
ret 4