Function at 0x1002d4f0
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x89c
mov eax, dword [0x100416e4]
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 - 0x898], 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 [0x10043578]
mov dword [ebp - 0x878], esi
mov dword [ebp - 0x888], ecx
mov dword [ebp - 0x894], 1
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x61c], 0
jne 0x1002d59e
mov esi, dword [0x1004338c]
lea eax, [ebp - 0x61c]
push 0x104
push eax
push 0xaeb6
mov ecx, esi
call dword [0x10044350]
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 0x100433a0
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1002db9b
mov ebx, dword [ebp - 0x888]
lea edi, [ebx + 0x18]
mov dword [ebp - 0x89c], edi
cmp dword [edi], 0
je 0x1002d651
push 0x10043560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi]
mov dword [ebp - 0x87c], ebx
push 0x10043560
cmp ebx, dword [edi + 4]
jne 0x1002d625
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x1002d63d
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 0x1002d6d5
mov ebx, dword [ebp - 0x888]
mov ecx, esi
call fcn.1002c680
mov esi, eax
test esi, esi
je 0x1002db7b
push edi
lea edx, [esi + 0x18]
mov ecx, edi
call fcn.1001f750
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov dword [ebx + 4], esi
cmp dword [edi], 0
jne 0x1002d67f
xor ebx, ebx
jmp 0x1002d6cf
push 0x10043560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi]
mov dword [ebp - 0x87c], ebx
push 0x10043560
cmp ebx, dword [edi + 4]
jne 0x1002d6b1
mov dword [edi + 4], 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1002d6d5
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 0x10043560
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 0x1002d6fc
mov dword [eax + 4], ebx
cmp dword [edi + 0x10], 0
jne 0x1002d705
mov dword [edi + 0x10], ebx
push 0x10043560
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 0x1002d721
sub ecx, esi
lea ebx, [ebp - 0x874]
sar ecx, 1
lea eax, [ebp - 0x874]
lea ebx, [ebx + ecx*2]
mov dword [ebp - 0x890], ebx
cmp eax, ebx
jae 0x1002d766
lea esp, [esp]
movzx eax, word [edx]
mov ecx, eax
cmp eax, 0x20
je 0x1002d75f
cmp eax, 9
jne 0x1002d795
add edx, 2
cmp edx, ebx
jb 0x1002d750
mov edx, dword [ebp - 0x884]
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 0x878]
push eax
push dword [edi]
call fcn.1002e1e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bd00
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0x22
jne 0x1002d7ff
movzx eax, word [edx + 2]
add edx, 2
mov esi, edx
mov edi, eax
cmp eax, ecx
je 0x1002d7c5
mov ecx, eax
jmp 0x1002d7b0
test cx, cx
je 0x1002d7ca
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
mov edi, eax
cmp eax, 0x22
jne 0x1002d7b0
test di, di
jne 0x1002d81a
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.1002e1e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bd00
mov esp, ebp
pop ebp
ret 8
mov esi, edx
cmp cx, 9
je 0x1002d81a
test cx, cx
je 0x1002d81a
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
cmp eax, 0x20
jne 0x1002d801
mov ecx, edx
xor eax, eax
mov word [esi], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d824
mov ebx, dword [ebp - 0x898]
sub ecx, edi
sar ecx, 1
lea eax, [ebx + 0x6c]
push eax
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.10032a00
mov ecx, dword [ebp - 0x87c]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x1002db7b
mov edx, dword [ebp - 0x890]
lea ebx, [esi + 2]
cmp ebx, edx
jae 0x1002d7ca
movzx eax, word [ebx]
mov ecx, eax
cmp eax, 0x20
je 0x1002d877
cmp eax, 9
jne 0x1002d883
add ebx, 2
cmp ebx, edx
jb 0x1002d868
jmp 0x1002d7ca
mov edx, ebx
cmp cx, 9
je 0x1002d89e
test cx, cx
je 0x1002d89e
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
cmp eax, 0x20
jne 0x1002d885
xor eax, eax
mov dword [ebp - 0x88c], edx
mov word [edx], ax
mov edi, 0xaea7
mov edi, edi
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x20c], 0
jne 0x1002d900
mov esi, dword [0x1004338c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
mov ecx, esi
call dword [0x10044350]
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 0x1002d910
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 0x1002d944
inc edi
cmp edi, 0xaeb0
jb 0x1002d8b0
jmp 0x1002d95d
mov esi, dword [ebp - 0x87c]
movzx eax, di
mov word [esi + 0x10], ax
cmp edi, 0xaeb0
jb 0x1002da52
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x1002d996
mov di, word [0x1004352c]
mov edx, eax
mov si, word [0x10043514]
cmp dx, di
je 0x1002d985
cmp dx, word [0x10043520]
jne 0x1002d988
mov word [ecx], si
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x1002d977
mov edi, 0xaeb0
jmp 0x1002d9a0
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x20c], 0
jne 0x1002d9f0
mov esi, dword [0x1004338c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
mov ecx, esi
call dword [0x10044350]
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 0x1002da00
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 0x1002da37
inc edi
cmp edi, 0xaeb5
jbe 0x1002d9a0
jmp 0x1002d7ca
mov esi, dword [ebp - 0x87c]
mov eax, 0xaeb0
mov word [esi + 0x10], ax
cmp edi, 0xaeb5
ja 0x1002d7ca
movzx ecx, ax
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0xaea3
je 0x1002da6f
mov eax, 0xaea7
cmp cx, ax
jne 0x1002db06
mov ecx, dword [ebp - 0x88c]
mov ebx, dword [ebp - 0x890]
add ecx, 2
cmp ecx, ebx
jae 0x1002da96
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002da8f
cmp eax, 9
jne 0x1002da96
add ecx, 2
cmp ecx, ebx
jb 0x1002da82
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002dab8
mov edx, eax
cmp dx, 9
je 0x1002dab8
cmp ecx, ebx
jae 0x1002dab8
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
cmp eax, 0x20
jne 0x1002daa0
add ecx, 2
cmp ecx, ebx
jae 0x1002d7ca
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002dad0
cmp eax, 9
jne 0x1002dadc
add ecx, 2
cmp ecx, ebx
jb 0x1002dac3
jmp 0x1002d7ca
mov eax, ecx
mov edi, edi
movzx edx, word [eax]
cmp edx, 0x20
je 0x1002daf4
cmp edx, 9
je 0x1002daf4
add eax, 2
cmp eax, ebx
jb 0x1002dae0
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 - 0x894]
inc eax
mov dword [ebp - 0x894], 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 0x100433a0
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1002db9b
mov edi, dword [ebp - 0x89c]
mov esi, dword [ebp - 0x878]
mov ebx, dword [ebp - 0x888]
jmp 0x1002d5f4
mov ecx, dword [ebp - 0x878]
call fcn.10032430
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bd00
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.1003bd00
mov esp, ebp
pop ebp
ret 8