Function at 0x1002c4f0
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 0x1002c59e
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 0x1002cbdb
mov ebx, dword [ebp - 0x88c]
lea edi, [ebx + 0x18]
mov dword [ebp - 0x8a0], edi
cmp dword [edi], 0
je 0x1002c651
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 0x1002c625
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x1002c63d
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 0x1002c6d5
mov ebx, dword [ebp - 0x88c]
mov ecx, esi
call fcn.1002b690
mov esi, eax
test esi, esi
je 0x1002cbbb
push edi
lea edx, [esi + 0x18]
mov ecx, edi
call fcn.1001e920
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov dword [ebx + 4], esi
cmp dword [edi], 0
jne 0x1002c67f
xor ebx, ebx
jmp 0x1002c6cf
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 0x1002c6b1
mov dword [edi + 4], 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1002c6d5
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 0x1002c6fc
mov dword [eax + 4], ebx
cmp dword [edi + 0x10], 0
jne 0x1002c705
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 0x1002c721
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 0x1002c766
lea esp, [esp]
movzx eax, word [edx]
mov ecx, eax
cmp eax, 0x20
je 0x1002c75f
cmp eax, 9
jne 0x1002c795
add edx, 2
cmp edx, ebx
jb 0x1002c750
mov edx, dword [ebp - 0x884]
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 0x878]
push eax
push dword [edi]
call fcn.1002d220
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a1d0
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0x22
jne 0x1002c7ff
movzx eax, word [edx + 2]
add edx, 2
mov esi, edx
mov edi, eax
cmp eax, ecx
je 0x1002c7c5
mov ecx, eax
jmp 0x1002c7b0
test cx, cx
je 0x1002c7ca
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
mov edi, eax
cmp eax, 0x22
jne 0x1002c7b0
test di, di
jne 0x1002c81f
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.1002d220
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a1d0
mov esp, ebp
pop ebp
ret 8
mov esi, edx
cmp ecx, 0x20
je 0x1002c81f
cmp cx, 9
je 0x1002c81f
test cx, cx
je 0x1002c81f
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
cmp eax, 0x20
jne 0x1002c806
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 0x1002c830
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.10031a80
mov ecx, dword [ebp - 0x87c]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x1002cbbb
mov edx, dword [ebp - 0x894]
lea ebx, [esi + 2]
mov dword [ebp - 0x890], ebx
cmp ebx, edx
jae 0x1002c7ca
lea ebx, [ebx]
movzx eax, word [ebx]
mov ecx, eax
cmp eax, 0x20
je 0x1002c88f
cmp eax, 9
jne 0x1002c8a1
add ebx, 2
mov dword [ebp - 0x890], ebx
cmp ebx, edx
jb 0x1002c880
jmp 0x1002c7ca
mov eax, ebx
mov dword [ebp - 0x888], eax
cmp ecx, 0x20
je 0x1002c8db
mov edi, edi
cmp cx, 9
je 0x1002c8c9
test cx, cx
je 0x1002c8c9
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
cmp eax, 0x20
jne 0x1002c8b0
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 0x1002c8f0
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 0x1002c940
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 0x1002c950
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 0x1002c984
inc edi
cmp edi, 0xaeb0
jb 0x1002c8f0
jmp 0x1002c99d
mov esi, dword [ebp - 0x87c]
movzx eax, di
mov word [esi + 0x10], ax
cmp edi, 0xaeb0
jb 0x1002ca92
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x1002c9d6
mov di, word [0x1004152c]
mov edx, eax
mov si, word [0x10041514]
cmp dx, di
je 0x1002c9c5
cmp dx, word [0x10041520]
jne 0x1002c9c8
mov word [ecx], si
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x1002c9b7
mov edi, 0xaeb0
jmp 0x1002c9e0
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 0x1002ca30
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 0x1002ca40
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 0x1002ca77
inc edi
cmp edi, 0xaeb5
jbe 0x1002c9e0
jmp 0x1002c7ca
mov esi, dword [ebp - 0x87c]
mov eax, 0xaeb0
mov word [esi + 0x10], ax
cmp edi, 0xaeb5
ja 0x1002c7ca
movzx ecx, ax
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0xaea3
je 0x1002caaf
mov eax, 0xaea7
cmp cx, ax
jne 0x1002cb46
mov ecx, dword [ebp - 0x888]
mov ebx, dword [ebp - 0x894]
add ecx, 2
cmp ecx, ebx
jae 0x1002cad6
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002cacf
cmp eax, 9
jne 0x1002cad6
add ecx, 2
cmp ecx, ebx
jb 0x1002cac2
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002caf8
mov edx, eax
cmp dx, 9
je 0x1002caf8
cmp ecx, ebx
jae 0x1002caf8
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
cmp eax, 0x20
jne 0x1002cae0
add ecx, 2
cmp ecx, ebx
jae 0x1002c7ca
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002cb10
cmp eax, 9
jne 0x1002cb1c
add ecx, 2
cmp ecx, ebx
jb 0x1002cb03
jmp 0x1002c7ca
mov eax, ecx
mov edi, edi
movzx edx, word [eax]
cmp edx, 0x20
je 0x1002cb34
cmp edx, 9
je 0x1002cb34
add eax, 2
cmp eax, ebx
jb 0x1002cb20
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 0x1002cbdb
mov edi, dword [ebp - 0x8a0]
mov esi, dword [ebp - 0x878]
mov ebx, dword [ebp - 0x88c]
jmp 0x1002c5f4
mov ecx, dword [ebp - 0x878]
call fcn.100314b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a1d0
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.1003a1d0
mov esp, ebp
pop ebp
ret 8