Function at 0x41b1c7aa
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41b28d84]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x20c], ecx
and dword [ebp - 0x20c], 0x400
push edi
lea edi, [ebp - 0x204]
mov dword [ebp - 0x208], eax
je 0x41b1c7f7
cmp dword [esi + 0xc], eax
jne 0x41b1c7f7
mov eax, 0x11a
jmp 0x41b1cad7
cmp dword [esi + 4], eax
je 0x41b1cad2
cmp dword [esi + 8], eax
je 0x41b1cad2
mov ebx, 0x100
cmp dword [ebp - 0x20c], eax
je 0x41b1c822
test ebx, ecx
je 0x41b1c822
lea eax, [ebx + 0x1c]
jmp 0x41b1cad7
test ecx, 0x800
je 0x41b1c8a5
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x41b1c83c
mov eax, 0x117
jmp 0x41b1cad7
push 0x41b28e80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
jbe 0x41b1c88e
cmp edi, dword [0x41b29cf0]
jae 0x41b1c88e
mov eax, dword [0x41b280d0]
lea eax, [eax + edi*4]
cmp dword [eax], 0
je 0x41b1c88e
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41b1c86a
mov ecx, dword [esi + 8]
sub eax, edx
sar eax, 1
cmp eax, ecx
jb 0x41b1caa0
mov esi, 0x10c
jmp 0x41b1c893
xor esi, esi
jmp 0x41b1c893
mov esi, 0x107
push 0x41b28e80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x41b1cad7
test ecx, 0x200
jne 0x41b1c9d6
cmp dword [ebp + 8], 0xffffffff
je 0x41b1c8c6
cmp dword [esi + 0x10], eax
jne 0x41b1c8c6
mov eax, 0x11f
jmp 0x41b1cad7
test ecx, 0x500
jne 0x41b1c8d8
mov eax, 0x111
jmp 0x41b1cad7
push 0x41b110b4
push 0xff
lea eax, [ebp - 0x204]
push eax
push 0x41b2a1b8
push 0
push 0x41b070c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
and dword [ebp - 0x210], 0
mov eax, dword [ebp + 0xc]
and eax, ebx
mov ebx, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
xor ecx, ecx
cmp dword [ebp - 0x214], ecx
je 0x41b1c940
cmp word [edi], cx
je 0x41b1c97a
cmp dword [ebp + 8], 0xffffffff
je 0x41b1c933
push edi
call fcn.41b1bff9
cmp eax, dword [esi + 0x10]
jne 0x41b1c934
inc ebx
mov ax, word [edi]
inc edi
inc edi
test ax, ax
je 0x41b1c913
jmp 0x41b1c934
cmp dword [ebp - 0x20c], ecx
je 0x41b1c913
cmp ebx, dword [esi + 0xc]
je 0x41b1c996
cmp word [edi], cx
je 0x41b1c7ed
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x208], edi
je 0x41b1c96d
push edi
call fcn.41b1bff9
cmp eax, dword [esi + 0x10]
jne 0x41b1c96e
inc ebx
mov ax, word [edi]
inc edi
inc edi
test ax, ax
je 0x41b1c913
jmp 0x41b1c96e
mov eax, dword [esi + 4]
cmp eax, ecx
je 0x41b1cad2
cmp dword [esi + 8], 4
jb 0x41b1cad2
mov dword [eax], ebx
jmp 0x41b1cacb
mov eax, dword [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41b1c99f
mov ecx, dword [esi + 8]
sub eax, edx
sar eax, 1
cmp eax, ecx
jae 0x41b1cad2
push dword [ebp - 0x208]
push ecx
push dword [esi + 4]
call fcn.41b050d1
test eax, eax
jl 0x41b1cad2
xor eax, eax
jmp 0x41b1cad7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x208], eax
je 0x41b1c9f2
cmp dword [esi + 0x10], 0
je 0x41b1c8bc
test dword [ebp + 0xc], 0x500
je 0x41b1c8ce
push 0x41b28e80
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x41b29cf0]
xor edx, edx
inc edx
cmp ecx, edx
jbe 0x41b1ca62
mov eax, dword [0x41b280d0]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x41b1ca5d
cmp dword [ebp + 8], 0xffffffff
jne 0x41b1ca36
mov ebx, dword [ebp - 0x208]
cmp dword [eax + 0x34], ebx
je 0x41b1ca49
mov ebx, dword [eax + 0x20]
cmp ebx, dword [esi + 0x10]
jne 0x41b1ca4a
mov ebx, dword [ebp - 0x208]
cmp dword [eax + 0x34], ebx
jne 0x41b1ca4a
inc edi
cmp dword [ebp - 0x20c], 0
je 0x41b1ca58
cmp edi, dword [esi + 0xc]
je 0x41b1ca89
mov ebx, 0x100
inc edx
cmp edx, ecx
jb 0x41b1ca19
push 0x41b28e80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x20c], 0
je 0x41b1cab7
cmp dword [esi + 4], 0
je 0x41b1c7ed
and dword [esi + 4], 0
jmp 0x41b1c7ed
mov edi, dword [eax]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
je 0x41b1c874
jmp 0x41b1ca90
push edi
push ecx
push dword [esi + 4]
call fcn.41b050d1
test eax, eax
jl 0x41b1c883
jmp 0x41b1c88a
test dword [ebp + 0xc], ebx
je 0x41b1cad2
mov eax, dword [esi + 4]
test eax, eax
je 0x41b1cad2
cmp dword [esi + 8], 4
jb 0x41b1cad2
mov dword [eax], edi
mov eax, 0x80000
jmp 0x41b1cad7
mov eax, 0x10c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.41b028d6
leave
ret 0xc