Function at 0x412890
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4217c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x838
push ebx
xor ebx, ebx
mov dword [esp + 0x844], ebx
mov al, byte [esp + 7]
mov dword [esp + 0xc], ebx
mov byte [esp + 8], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov cl, byte [esp + 7]
push ebx
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov byte [esp + 0x848], 2
call fcn.0040cf30
push 0x429368
call fcn.00417a8e
add esp, 4
lea ecx, [esp + 0x1c]
push eax
push 0x429368
call fcn.0040cb90
mov ecx, dword [esp + 0x84c]
lea edx, [esp + 8]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
mov byte [esp + 0x850], 3
call fcn.00412d10
add esp, 0xc
test al, al
jne 0x412998
push 1
lea ecx, [esp + 0x20]
call fcn.0040cf30
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x84c], 1
call fcn.00412c60
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0041749e
add esp, 4
lea ecx, [esp + 0x850]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
push 1
mov dword [esp + 0x18], ebx
call fcn.0040cf30
push 1
lea ecx, [esp + 0x864]
call fcn.0040cf30
xor al, al
pop ebx
mov ecx, dword [esp + 0x838]
mov dword fs:[0], ecx
add esp, 0x844
ret
push ebp
push esi
push edi
mov dword [esp + 0x24], ebx
xor ebp, ebp
mov edx, dword [esp + 0x18]
cmp edx, ebx
je 0x412b23
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
sub eax, edx
sar eax, 4
cmp ecx, eax
jae 0x412b23
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x7a]
mov word [esp + 0x78], bx
rep stosd dword es:[edi], eax
lea esi, [edx + ebp]
push ebx
stosw word es:[edi], ax
mov cl, byte [esi]
mov byte [esp + 0x4c], cl
lea ecx, [esp + 0x4c]
call fcn.0040cf30
mov edx, dword [0x422604]
lea ecx, [esp + 0x48]
push edx
push ebx
push esi
call fcn.0040c980
mov edx, dword [esp + 0x860]
mov byte [esp + 0x850], 4
cmp edx, ebx
jne 0x412a13
mov edx, 0x422470
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + ebp + 4]
cmp ecx, ebx
jne 0x412a24
mov ecx, 0x422470
mov eax, dword [esp + 0x870]
cmp eax, ebx
jne 0x412a34
mov eax, 0x422470
push edx
lea edx, [esp + 0x7c]
push 0x3e8
push edx
push 0x42c54c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
lea ecx, [eax + ebp]
lea eax, [esp + 0x68]
push ecx
push edx
push eax
call fcn.00410df0
lea ecx, [esp + 0x34]
lea edx, [esp + 0x64]
push ecx
push eax
push edx
mov byte [esp + 0x868], 5
call fcn.00410df0
add esp, 0x18
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x854], 7
call fcn.0040cf30
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.0040cf30
lea ecx, [esp + 0x78]
push ecx
call fcn.00417a8e
add esp, 4
lea edx, [esp + 0x78]
lea ecx, [esp + 0x38]
push eax
push edx
call fcn.0040cb90
mov eax, dword [esp + 0x40]
mov byte [esp + 0x850], 8
cmp eax, ebx
jbe 0x412ae9
mov edx, dword [esp + 0x858]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x58]
push eax
push ecx
push edx
call fcn.00413510
add esp, 0xc
push 1
lea ecx, [esp + 0x3c]
call fcn.0040cf30
push 1
lea ecx, [esp + 0x5c]
call fcn.0040cf30
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x854], 3
call fcn.0040cf30
mov ecx, dword [esp + 0x24]
inc ecx
add ebp, 0x10
mov dword [esp + 0x24], ecx
jmp 0x4129a1
push 1
lea ecx, [esp + 0x2c]
call fcn.0040cf30
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov byte [esp + 0x850], 1
je 0x412b55
push ebx
mov ecx, esi
call fcn.00412cb0
add esi, 0x10
cmp esi, edi
jne 0x412b42
mov esi, dword [esp + 0x18]
push esi
call fcn.0041749e
mov ecx, dword [esp + 0x864]
add esp, 4
cmp ecx, ebx
mov dword [esp + 0x18], ebx
pop edi
pop esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
pop ebp
je 0x412b96
mov al, byte [ecx - 1]
cmp al, bl
je 0x412b8a
cmp al, 0xff
je 0x412b8a
dec al
mov byte [ecx - 1], al
jmp 0x412b96
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
mov ecx, dword [esp + 0x864]
mov dword [esp + 0x854], ebx
cmp ecx, ebx
mov dword [esp + 0x858], ebx
mov dword [esp + 0x85c], ebx
je 0x412bd4
mov al, byte [ecx - 1]
cmp al, bl
je 0x412bc8
cmp al, 0xff
je 0x412bc8
dec al
mov byte [ecx - 1], al
jmp 0x412bd4
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
mov ecx, dword [esp + 0x83c]
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x844
ret