Function at 0x498630
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d538
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x551644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x49881a
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push 0x200
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00497940
mov edi, dword [ebp - 0x14]
mov edx, dword [esi]
cmp edi, ebx
jne 0x49868f
xor ecx, ecx
jmp 0x498692
mov ecx, dword [edi + 0x10]
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
jne 0x49869d
xor eax, eax
jmp 0x4986b0
cmp edi, ebx
je 0x4986a6
mov eax, dword [edi + 0xc]
jmp 0x4986a8
xor eax, eax
imul eax, dword [ebp - 0x18]
add eax, esi
xor ebx, ebx
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
push 0x51f38c
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, ebx
jne 0x4986ce
xor eax, eax
jmp 0x4986df
cmp edi, ebx
je 0x4986d7
mov eax, dword [edi + 0xc]
jmp 0x4986d9
xor eax, eax
imul eax, dword [ebp - 0x18]
add eax, esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e5a0
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp dword [ecx - 0xc], ebx
jl 0x49874c
push 0x51f388
push ecx
call fcn.004f5168
add esp, 8
cmp eax, ebx
je 0x49874c
sub eax, dword [ebp - 0x10]
js 0x49874c
push eax
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406e20
mov esi, dword [ebp + 8]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00408c20
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49875a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49875a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.00408c20
push 0x51f384
mov ecx, esi
call fcn.0046e340
push 0x51f384
mov ecx, esi
call fcn.0046e2d0
mov esi, dword [esi]
cmp dword [esi - 0xc], ebx
jne 0x4987d7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49879d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
cmp edi, ebx
je 0x49881a
add dword [edi + 4], esi
jne 0x49881a
cmp byte [edi + 8], bl
je 0x4987b6
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x51f38c
push esi
call fcn.004f5b42
add esp, 8
or edx, 0xffffffff
cmp eax, ebx
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], bl
jne 0x498830
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49880b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fe50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498849
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fe50
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc