Function at 0x1002d940
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 - 0x880], 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 - 0x884], edi
push 0x104
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61c]
push eax
push 0xaeb6
push dword [0x10043518]
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 0x1002d9ee
mov esi, dword [0x1004332c]
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 0x10043340
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1002dfeb
mov ebx, dword [ebp - 0x888]
lea edi, [ebx + 0x18]
mov dword [ebp - 0x89c], edi
cmp dword [edi], 0
je 0x1002daa1
push 0x10043500
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi]
mov dword [ebp - 0x87c], ebx
push 0x10043500
cmp ebx, dword [edi + 4]
jne 0x1002da75
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x1002da8d
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 0x1002db25
mov ebx, dword [ebp - 0x888]
mov ecx, esi
call fcn.1002cb30
mov esi, eax
test esi, esi
je 0x1002dfcb
push edi
lea edx, [esi + 0x18]
mov ecx, edi
call fcn.1001fb00
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov dword [ebx + 4], esi
cmp dword [edi], 0
jne 0x1002dacf
xor ebx, ebx
jmp 0x1002db1f
push 0x10043500
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi]
mov dword [ebp - 0x87c], ebx
push 0x10043500
cmp ebx, dword [edi + 4]
jne 0x1002db01
mov dword [edi + 4], 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1002db25
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 0x10043500
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x884]
mov dword [ebx + 4], 0
mov eax, dword [edi + 0x14]
mov dword [ebx], eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x1002db4c
mov dword [eax + 4], ebx
cmp dword [edi + 0x10], 0
jne 0x1002db55
mov dword [edi + 0x10], ebx
push 0x10043500
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 0x1002db71
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 0x1002dbb6
lea esp, [esp]
movzx eax, word [edx]
mov ecx, eax
cmp eax, 0x20
je 0x1002dbaf
cmp eax, 9
jne 0x1002dbe5
add edx, 2
cmp edx, ebx
jb 0x1002dba0
mov edx, dword [ebp - 0x880]
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 0x878]
push eax
push dword [edi]
call fcn.1002e650
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0x22
jne 0x1002dc15
movzx eax, word [edx + 2]
add edx, 2
mov esi, edx
cmp eax, ecx
je 0x1002dc30
mov ecx, eax
lea esp, [esp]
test cx, cx
je 0x1002dbb6
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
cmp eax, 0x22
jne 0x1002dc00
jmp 0x1002dc30
mov esi, edx
cmp cx, 9
je 0x1002dc30
test cx, cx
je 0x1002dc30
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
cmp eax, 0x20
jne 0x1002dc17
mov ecx, edx
xor eax, eax
mov word [esi], ax
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002dc40
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.10032f70
mov ecx, dword [ebp - 0x87c]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x1002dfcb
mov edx, dword [ebp - 0x890]
lea ebx, [esi + 2]
cmp ebx, edx
jae 0x1002dc96
movzx eax, word [ebx]
mov ecx, eax
cmp eax, 0x20
je 0x1002dc8f
cmp eax, 9
jne 0x1002dccb
add ebx, 2
cmp ebx, edx
jb 0x1002dc80
mov edi, dword [ebp - 0x884]
lea eax, [ebp - 0x414]
mov edx, dword [ebp - 0x880]
mov ecx, dword [ebp - 0x878]
push eax
push dword [edi]
call fcn.1002e650
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 8
mov edx, ebx
lea ecx, [ecx]
cmp cx, 9
je 0x1002dce9
test cx, cx
je 0x1002dce9
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
cmp eax, 0x20
jne 0x1002dcd0
xor eax, eax
mov dword [ebp - 0x88c], edx
mov word [edx], ax
mov edi, 0xaea7
lea esp, [esp]
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [0x10043518]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x20c], 0
jne 0x1002dd50
mov esi, dword [0x1004332c]
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 0x1002dd60
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 0x1002dd94
inc edi
cmp edi, 0xaeb0
jb 0x1002dd00
jmp 0x1002ddad
mov esi, dword [ebp - 0x87c]
movzx eax, di
mov word [esi + 0x10], ax
cmp edi, 0xaeb0
jb 0x1002dea2
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x1002dde6
mov di, word [0x100434cc]
mov edx, eax
mov si, word [0x100434b4]
cmp dx, di
je 0x1002ddd5
cmp dx, word [0x100434c0]
jne 0x1002ddd8
mov word [ecx], si
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x1002ddc7
mov edi, 0xaeb0
jmp 0x1002ddf0
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [0x10043518]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x20c], 0
jne 0x1002de40
mov esi, dword [0x1004332c]
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 0x1002de50
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 0x1002de87
inc edi
cmp edi, 0xaeb5
jbe 0x1002ddf0
jmp 0x1002dc96
mov esi, dword [ebp - 0x87c]
mov eax, 0xaeb0
mov word [esi + 0x10], ax
cmp edi, 0xaeb5
ja 0x1002dc96
movzx ecx, ax
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0xaea3
je 0x1002debf
mov eax, 0xaea7
cmp cx, ax
jne 0x1002df56
mov ecx, dword [ebp - 0x88c]
mov ebx, dword [ebp - 0x890]
add ecx, 2
cmp ecx, ebx
jae 0x1002dee6
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002dedf
cmp eax, 9
jne 0x1002dee6
add ecx, 2
cmp ecx, ebx
jb 0x1002ded2
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002df08
mov edx, eax
cmp dx, 9
je 0x1002df08
cmp ecx, ebx
jae 0x1002df08
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
cmp eax, 0x20
jne 0x1002def0
add ecx, 2
cmp ecx, ebx
jae 0x1002dc96
movzx eax, word [ecx]
cmp eax, 0x20
je 0x1002df20
cmp eax, 9
jne 0x1002df2c
add ecx, 2
cmp ecx, ebx
jb 0x1002df13
jmp 0x1002dc96
mov eax, ecx
mov edi, edi
movzx edx, word [eax]
cmp edx, 0x20
je 0x1002df44
cmp edx, 9
je 0x1002df44
add eax, 2
cmp eax, ebx
jb 0x1002df30
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 - 0x880]
lea eax, [ebp - 0x874]
mov edi, dword [ebp - 0x884]
add esp, 0x10
push ebx
push 0x12c
push eax
push 0x10043340
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1002dfeb
mov edi, dword [ebp - 0x89c]
mov esi, dword [ebp - 0x878]
mov ebx, dword [ebp - 0x888]
jmp 0x1002da44
mov ecx, dword [ebp - 0x878]
call fcn.10032980
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c3b0
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.1003c3b0
mov esp, ebp
pop ebp
ret 8