Function at 0x100021f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100101c6
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x10018004]
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 esi, ecx
mov edi, dword [ebp + 0x38]
push 0x410
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.10005200
add esp, 0xc
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x1000224a
mov edx, dword [esi]
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
push edx
cmovae ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x420]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x208
cmovae eax, dword [ebp + 8]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x10002498
push eax
push 0x10016040
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
call fcn.10001830
mov byte [ebp - 4], 2
lea edx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
mov dword [ebp - 0x440], 0
cmovae edx, dword [ebp + 0x20]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100022e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x450]
call fcn.10001830
mov byte [ebp - 4], 3
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x428], 0
cmovae edx, dword [ebp + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002330
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.10001830
cmp dword [esi + 0x14], 8
jb 0x10002354
mov esi, dword [esi]
cmp dword [ebp - 0x454], 8
lea edx, [ebp - 0x468]
push esi
cmovae edx, dword [ebp - 0x468]
lea ecx, [ebp - 0x450]
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x438]
push edx
cmovae ecx, dword [ebp - 0x450]
cmp dword [ebp - 0x424], 8
push ecx
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x100023da
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100023d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002565
push edx
push ecx
call fcn.10003d67
add esp, 8
mov edx, dword [ebp - 0x43c]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp edx, 8
jb 0x10002437
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000242d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000256a
push edx
push ecx
call fcn.10003d67
add esp, 8
mov edx, dword [ebp - 0x454]
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
cmp edx, 8
jb 0x10002494
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000248a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000256f
push edx
push ecx
call fcn.10003d67
add esp, 8
xor bl, bl
jmp 0x100024c1
lea edx, [ebp - 0x420]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100024a1
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.10001830
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x100024fb
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100024f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002574
push edx
push ecx
call fcn.10003d67
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x10002545
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000253b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002579
push edx
push ecx
call fcn.10003d67
add esp, 8
mov al, bl
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.10003d26
mov esp, ebp
pop ebp
ret 0x34
call fcn.10007542
call fcn.10007542
call fcn.10007542
call fcn.10007542
call fcn.10007542
int3