Function at 0x412ce0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3278
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
cmp dword [eax + 0xc], 4
je 0x412f51
lea edi, [eax + 8]
mov esi, dword [edi + 8]
mov eax, dword [ebp + 0x10]
add esi, dword [ebp - 0x38]
test eax, eax
je 0x412d3b
cmp eax, esi
jne 0x412ee9
mov edx, dword [ebp + 0xc]
cmp edx, 2
je 0x412efe
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
cmp ecx, 3
ja case.default.0x412d56
jmp dword [ecx*4 + 0x412fbc]
cmp edx, 1
jne 0x412d79
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
mov edx, dword [edi - 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x412ee7
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [edi - 4]
push esi
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
jmp 0x412ee9
cmp edx, 1
jne 0x412db9
mov ecx, dword [ebp + 8]
mov esi, dword [esi]
mov edx, dword [edi]
mov eax, dword [edi - 4]
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x412ee7
mov ebx, 0x80
add ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
js 0x412f2b
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ebx
or eax, ecx
jge 0x412de8
mov eax, ebx
mov ecx, esi
call fcn.0041b590
mov edx, dword [ebp - 0x34]
mov eax, dword [esi]
mov ecx, dword [edi - 4]
push edx
push ebx
push eax
mov eax, dword [edi]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x412e1d
push ecx
push eax
call fcn.00453fa1
add esp, 8
test eax, eax
js 0x412f2b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x412f2b
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x34]
lea edx, [ebx - 1]
cmp eax, edx
je 0x412dbe
xor ebx, ebx
test eax, eax
setne bl
jmp 0x412ee9
xor eax, eax
mov word [ebp - 0x30], ax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
lea ecx, [ebp - 0x30]
cmp edx, 1
jne 0x412e93
mov esi, dword [esi]
push 0xa
push 0xf
push ecx
push esi
call fcn.0045631a
mov edx, dword [ebp + 8]
mov ecx, dword [edi]
add esp, 0x10
push edx
mov edx, dword [edi - 4]
lea eax, [ebp - 0x30]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x412ee7
mov eax, dword [ebp + 8]
mov edx, dword [edi]
push eax
mov eax, dword [edi - 4]
push 0xf
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
je 0x412f51
lea ecx, [ebp - 0x30]
push ecx
call fcn.00454db9
add esp, 4
mov dword [esi], eax
jmp 0x412ee9
mov ecx, dword [edi - 4]
cmp edx, 1
mov edx, dword [ebp + 8]
push edx
push eax
mov eax, dword [edi]
push esi
push eax
push ecx
jne 0x412ee1
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
jmp 0x412ee7
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov ebx, eax
test ebx, ebx
je 0x412f51
add edi, 0x18
cmp dword [edi + 4], 4
jne 0x412d26
xor eax, eax
jmp 0x412f6f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412f24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004001
jmp 0x412f9e
push 0x80070057
call fcn.0041b5f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x412f18
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x412f65
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x412f6d
xor eax, eax
jmp 0x412f6f
call esi
call fcn.00417e90
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453be1
mov esp, ebp
pop ebp
ret