Function at 0x10051b97
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x100a509c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
call fcn.1007092b
push edi
push 0x14c08
push esi
push 0x1008a588
push str.GoodItem
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x64
lea eax, [ebp - 0x150]
push 0
push eax
call sub.MSVCR100.dll_memset
push 0x100928d0
push esi
call dword [sym.imp.MSVCR100.dll_strtok]
add esp, 0x14
mov dword [ebp - 0x1c0], eax
test eax, eax
je 0x10051e17
mov edi, dword [sym.imp.MSVCR100.dll_strcpy]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_strcmp]
mov esi, dword [ebp - 0x1c0]
push esi
call dword [sym.imp.MSVCR100.dll_strlen]
inc eax
cmp byte [esi], 0x7c
pop ecx
mov dword [ebp - 0x1c8], eax
jne 0x10051c34
inc esi
push esi
lea eax, [ebp - 0x24]
push eax
call edi
pop ecx
pop ecx
jmp 0x10051dee
and dword [ebp - 0x1b8], 0
push 0x64
lea eax, [ebp - 0x1b4]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp byte [ebp - 0x150], 0
push esi
je 0x10051c76
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x1b4]
push str._s__s
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
jmp 0x10051c81
lea eax, [ebp - 0x1b4]
push eax
call edi
pop ecx
pop ecx
mov esi, 0x1008c098
lea eax, [ebp - 0x1b4]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strtok]
pop ecx
pop ecx
test eax, eax
je 0x10051ce7
lea ecx, [ebp - 0xec]
mov dword [ebp - 0x1bc], ecx
push eax
push dword [ebp - 0x1bc]
call edi
inc dword [ebp - 0x1b8]
add dword [ebp - 0x1bc], 0x32
push esi
push 0
call dword [sym.imp.MSVCR100.dll_strtok]
add esp, 0x10
test eax, eax
jne 0x10051ca6
cmp dword [ebp - 0x1b8], 1
jne 0x10051ce7
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x150]
jmp 0x10051c2a
cmp dword [ebp - 0x1b8], 4
mov byte [ebp - 0x150], 0
jne 0x10051dee
mov eax, dword [0x100ded88]
xor esi, esi
test eax, eax
jle 0x10051d5d
mov dword [ebp - 0x1b8], 0x100c958a
mov dword [ebp - 0x1bc], 0x100a6918
lea eax, [ebp - 0xec]
push eax
push dword [ebp - 0x1bc]
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10051d45
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1b8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10051e25
mov eax, dword [0x100ded88]
add dword [ebp - 0x1bc], 0x37
add dword [ebp - 0x1b8], 0x1e
inc esi
cmp esi, eax
jl 0x10051d1a
imul eax, eax, 0x37
lea ecx, [ebp - 0xec]
push ecx
add eax, 0x100a6918
push eax
call edi
mov esi, 0x1008a578
lea eax, [ebp - 0xba]
push esi
push eax
call ebx
mov ecx, dword [0x100ded88]
neg eax
sbb al, al
inc al
mov byte [ecx + 0x100dc50e], al
lea eax, [ebp - 0x88]
push esi
push eax
call ebx
mov ecx, dword [0x100ded88]
neg eax
sbb al, al
inc al
mov byte [ecx + 0x100dcf2c], al
lea eax, [ebp - 0x56]
push esi
push eax
call ebx
mov ecx, dword [0x100ded88]
neg eax
sbb al, al
inc al
mov byte [ecx + 0x100dd94a], al
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x100ded88]
imul eax, eax, 0x1e
add eax, 0x100c958a
push eax
call edi
mov eax, dword [0x100ded88]
add esp, 0x28
mov byte [eax + 0x100de368], 0
inc dword [0x100ded88]
mov eax, dword [ebp - 0x1c8]
add eax, dword [ebp - 0x1c0]
push 0x100928d0
push eax
call dword [sym.imp.MSVCR100.dll_strtok]
pop ecx
pop ecx
mov dword [ebp - 0x1c0], eax
test eax, eax
jne 0x10051c0b
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10082395
leave
ret
lea eax, [ebp - 0xba]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x56]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
mov dword [ebp - 0x1c4], eax
movzx eax, byte [esi + 0x100dc50e]
add esp, 0xc
cmp eax, dword [ebp - 0x1bc]
jne 0x10051e8f
movzx eax, byte [esi + 0x100dcf2c]
cmp eax, dword [ebp - 0x1b8]
jne 0x10051e8f
movzx eax, byte [esi + 0x100dd94a]
cmp eax, dword [ebp - 0x1c4]
je 0x10051dee
mov al, byte [ebp - 0x1bc]
mov byte [esi + 0x100dc50e], al
mov al, byte [ebp - 0x1b8]
mov byte [esi + 0x100dcf2c], al
mov al, byte [ebp - 0x1c4]
mov byte [esi + 0x100dd94a], al
mov byte [esi + 0x100de368], 0
jmp 0x10051dee