Function at 0x413910
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5996c8
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x6102d4]
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 - 0x850], ecx
mov esi, dword [ebp + 0x14]
mov ecx, esi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x85c], ebx
lea edx, [ecx + 2]
mov dword [ebp - 0x84c], eax
xor eax, eax
mov dword [ebp - 0x848], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x844], ebx
mov dword [ebp - 0x858], edi
mov dword [ebp - 0x854], esi
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4139a1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x840]
call fcn.00411630
lea eax, [ebp - 0x840]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0040cde0
push esi
push dword [ebp - 0x84c]
lea eax, [ebp - 0x828]
mov dword [ebp - 0x848], 1
push edi
push 0x5a1790
push eax
call fcn.0044ba31
add esp, 0x14
mov dword [ebp - 0x848], 3
cmp dword [ebp - 0x82c], 8
lea ecx, [ebp - 0x840]
mov ebx, dword [ebp - 0x814]
lea edi, [ebp - 0x828]
cmovae ecx, dword [ebp - 0x840]
cmp ebx, 8
mov esi, dword [ebp - 0x828]
mov edx, dword [ebp - 0x818]
cmovae edi, esi
mov byte [ebp - 4], 2
cmp edx, dword [ebp - 0x830]
jne 0x413afe
test edx, edx
je 0x413a65
sub edi, ecx
nop word [eax + eax]
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x413af8
add ecx, 2
sub edx, 1
jne 0x413a50
cmp byte [ebp + 0x18], 0
jne 0x413b2b
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0056f980
mov eax, dword [ebp - 0x850]
add esp, 0xc
add eax, 0xd4
cmp dword [eax + 0x14], 8
jb 0x413a98
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x854]
push dword [ebp - 0x84c]
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413ac6
mov edi, dword [ebp - 0x844]
lea eax, [ebp - 0x810]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00411630
mov ebx, dword [ebp - 0x814]
mov esi, dword [ebp - 0x828]
jmp 0x413b31
mov edx, dword [ebp - 0x818]
mov edi, dword [ebp - 0x844]
lea eax, [ebp - 0x828]
cmp edi, eax
je 0x413b31
cmp ebx, 8
mov ecx, edi
push edx
cmovae eax, esi
push eax
call fcn.00411630
mov ebx, dword [ebp - 0x814]
mov esi, dword [ebp - 0x828]
jmp 0x413b31
mov edi, dword [ebp - 0x844]
cmp ebx, 8
jb 0x413b65
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x413b5b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413bde
push ecx
push esi
call fcn.0045ec62
add esp, 8
xor eax, eax
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], 7
cmp eax, 8
jb 0x413bbe
mov edx, dword [ebp - 0x840]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413bb4
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413be3
push ecx
push edx
call fcn.0045ec62
add esp, 8
mov eax, edi
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.0045ef18
mov esp, ebp
pop ebp
ret 0x14
call fcn.00572b79
call fcn.00572b79
int3