Function at 0x1002c910
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8a0
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x884], ebx
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 0x89c], eax
mov edi, edx
xor eax, eax
mov dword [ebp - 0x880], edi
push 0x104
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61c]
push eax
push 0xaeb6
push dword [0x10041578]
mov dword [ebp - 0x878], esi
mov dword [ebp - 0x88c], ecx
mov dword [ebp - 0x898], 1
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x61c], 0
jne 0x1002c9be
mov esi, dword [0x1004138c]
lea eax, [ebp - 0x61c]
push 0x104
push eax
push 0xaeb6
mov ecx, esi
call dword [0x10042350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov esi, dword [ebp - 0x878]
push 1
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
lea eax, [ebp - 0x874]
push ebx
push 0x12c
push eax
push 0x100413a0
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1002cffb
mov ebx, dword [ebp - 0x88c]
lea edi, [ebx + 0x18]
mov dword [ebp - 0x8a0], edi
cmp dword [edi], 0
je 0x1002ca71
push 0x10041560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi]
mov dword [ebp - 0x87c], ebx
push 0x10041560
cmp ebx, dword [edi + 4]
jne 0x1002ca45
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x1002ca5d
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov dword [eax], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x1002caf5
mov ebx, dword [ebp - 0x88c]
mov ecx, esi
call fcn.1002bb60
mov esi, eax
test esi, esi
je 0x1002cfdb
push edi
lea edx, [esi + 0x18]
mov ecx, edi
call fcn.1001ee00
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov dword [ebx + 4], esi
cmp dword [edi], 0
jne 0x1002ca9f
xor ebx, ebx
jmp 0x1002caef
push 0x10041560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi]
mov dword [ebp - 0x87c], ebx
push 0x10041560
cmp ebx, dword [edi + 4]
jne 0x1002cad1
mov dword [edi + 4], 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1002caf5
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov dword [eax], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x87c], ebx
push 0x10041560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x880]
mov dword [ebx + 4], 0
mov eax, dword [edi + 0x14]
mov dword [ebx], eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x1002cb1c
mov dword [eax + 4], ebx
cmp dword [edi + 0x10], 0
jne 0x1002cb25
mov dword [edi + 0x10], ebx
push 0x10041560
mov dword [edi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [ebp - 0x874]
mov dword [ebx + 8], edi
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cb41
sub ecx, esi
lea ebx, [ebp - 0x874]
sar ecx, 1
lea eax, [ebp - 0x874]
lea ebx, [ebx + ecx*2]
mov dword [ebp - 0x894], ebx
cmp eax, ebx
jae 0x1002cb86
lea esp, [esp]
movzx eax, word [edx]
mov ecx, eax
cmp eax, 0x20
je 0x1002cb7f
cmp eax, 9
jne 0x1002cbb5
add edx, 2
cmp edx, ebx
jb 0x1002cb70
mov edx, dword [ebp - 0x884]
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 0x878]
push eax
push dword [edi]
call fcn.1002d640
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0x22
jne 0x1002cc1f
movzx eax, word [edx + 2]
add edx, 2
mov esi, edx
mov edi, eax
cmp eax, ecx
je 0x1002cbe5
mov ecx, eax
jmp 0x1002cbd0
test cx, cx
je 0x1002cbea
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
mov edi, eax
cmp eax, 0x22
jne 0x1002cbd0
test di, di
jne 0x1002cc3f
mov edi, dword [ebp - 0x880]
lea eax, [ebp - 0x414]
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x878]
push eax
push dword [edi]
call fcn.1002d640
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 8
mov esi, edx
cmp ecx, 0x20
je 0x1002cc3f
cmp cx, 9
je 0x1002cc3f
test cx, cx
je 0x1002cc3f
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
cmp eax, 0x20
jne 0x1002cc26
mov ecx, edx
xor eax, eax
mov word [esi], ax
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cc50
mov ebx, dword [ebp - 0x89c]
sub ecx, edi
sar ecx, 1
lea eax, [ebx + 0x6c]
push eax
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.10032020
mov ecx, dword [ebp - 0x87c]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x1002cfdb
mov edx, dword [ebp - 0x894]
lea ebx, [esi + 2]
mov dword [ebp - 0x890], ebx
cmp ebx, edx
jae 0x1002cbea
lea ebx, [ebx]
movzx eax, word [ebx]
mov ecx, eax
cmp eax, 0x20
je 0x1002ccaf
cmp eax, 9
jne 0x1002ccc1
add ebx, 2
mov dword [ebp - 0x890], ebx
cmp ebx, edx
jb 0x1002cca0
jmp 0x1002cbea
mov eax, ebx
mov dword [ebp - 0x888], eax
cmp ecx, 0x20
je 0x1002ccfb
mov edi, edi
cmp cx, 9
je 0x1002cce9
test cx, cx
je 0x1002cce9
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
cmp eax, 0x20
jne 0x1002ccd0
mov dword [ebp - 0x888], ebx
mov ebx, dword [ebp - 0x890]
mov eax, dword [ebp - 0x888]
xor ecx, ecx
mov edi, 0xaea7
mov word [eax], cx
jmp 0x1002cd10
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x20c], 0
jne 0x1002cd60
mov esi, dword [0x1004138c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
mov ecx, esi
call dword [0x10042350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cd70
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x1002cda4
inc edi
cmp edi, 0xaeb0
jb 0x1002cd10
jmp 0x1002cdba
mov esi, dword [ebp - 0x87c]
mov word [esi + 0x10], di
cmp edi, 0xaeb0
jb 0x1002ceb2
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x1002cdf3
mov di, word [0x1004152c]
mov edx, eax
mov si, word [0x10041514]
cmp dx, di
je 0x1002cde2
cmp dx, word [0x10041520]
jne 0x1002cde5
mov word [ecx], si
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x1002cdd4
mov edi, 0xaeb0
jmp 0x1002ce00
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x20c], 0
jne 0x1002ce50
mov esi, dword [0x1004138c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
mov ecx, esi
call dword [0x10042350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002ce60
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x1002ce97
inc edi
cmp edi, 0xaeb5
jbe 0x1002ce00
jmp 0x1002cbea
mov esi, dword [ebp - 0x87c]
mov eax, 0xaeb0
mov word [esi + 0x10], ax
cmp edi, 0xaeb5
ja 0x1002cbea
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0xaea3
je 0x1002cecd
mov eax, 0xaea7
cmp word [esi + 0x10], ax
jne 0x1002cf66
mov ecx, dword [ebp - 0x888]
mov ebx, dword [ebp - 0x894]
add ecx, 2
cmp ecx, ebx
jae 0x1002cef4
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002ceed
cmp eax, 9
jne 0x1002cef4
add ecx, 2
cmp ecx, ebx
jb 0x1002cee0
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002cf18
mov edx, eax
mov edi, edi
cmp dx, 9
je 0x1002cf18
cmp ecx, ebx
jae 0x1002cf18
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
cmp eax, 0x20
jne 0x1002cf00
add ecx, 2
cmp ecx, ebx
jae 0x1002cbea
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002cf30
cmp eax, 9
jne 0x1002cf3c
add ecx, 2
cmp ecx, ebx
jb 0x1002cf23
jmp 0x1002cbea
mov eax, ecx
mov edi, edi
movzx edx, word [eax]
cmp edx, 0x20
je 0x1002cf54
cmp edx, 9
je 0x1002cf54
add eax, 2
cmp eax, ebx
jb 0x1002cf40
xor edx, edx
push ecx
mov word [eax], dx
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x898]
inc eax
mov dword [ebp - 0x898], eax
movzx eax, ax
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
mov ebx, dword [ebp - 0x884]
lea eax, [ebp - 0x874]
mov edi, dword [ebp - 0x880]
add esp, 0x10
push ebx
push 0x12c
push eax
push 0x100413a0
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1002cffb
mov edi, dword [ebp - 0x8a0]
mov esi, dword [ebp - 0x878]
mov ebx, dword [ebp - 0x88c]
jmp 0x1002ca14
mov ecx, dword [ebp - 0x878]
call fcn.10031a50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 8
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret 8