Function at 0x100526fd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x100a609c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
call fcn.10071632
push edi
push 0x14c08
push esi
push 0x1008b588
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 0x100938e0
push esi
call dword [sym.imp.MSVCR100.dll_strtok]
add esp, 0x14
mov dword [ebp - 0x1c0], eax
test eax, eax
je 0x1005297d
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 0x1005279a
inc esi
push esi
lea eax, [ebp - 0x24]
push eax
call edi
pop ecx
pop ecx
jmp 0x10052954
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 0x100527dc
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 0x100527e7
lea eax, [ebp - 0x1b4]
push eax
call edi
pop ecx
pop ecx
mov esi, 0x1008d090
lea eax, [ebp - 0x1b4]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strtok]
pop ecx
pop ecx
test eax, eax
je 0x1005284d
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 0x1005280c
cmp dword [ebp - 0x1b8], 1
jne 0x1005284d
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x150]
jmp 0x10052790
cmp dword [ebp - 0x1b8], 4
mov byte [ebp - 0x150], 0
jne 0x10052954
mov eax, dword [0x100dfd88]
xor esi, esi
test eax, eax
jle 0x100528c3
mov dword [ebp - 0x1b8], 0x100ca58a
mov dword [ebp - 0x1bc], 0x100a7918
lea eax, [ebp - 0xec]
push eax
push dword [ebp - 0x1bc]
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x100528ab
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1b8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1005298b
mov eax, dword [0x100dfd88]
add dword [ebp - 0x1bc], 0x37
add dword [ebp - 0x1b8], 0x1e
inc esi
cmp esi, eax
jl 0x10052880
imul eax, eax, 0x37
lea ecx, [ebp - 0xec]
push ecx
add eax, 0x100a7918
push eax
call edi
mov esi, 0x1008b578
lea eax, [ebp - 0xba]
push esi
push eax
call ebx
mov ecx, dword [0x100dfd88]
neg eax
sbb al, al
inc al
mov byte [ecx + 0x100dd50e], al
lea eax, [ebp - 0x88]
push esi
push eax
call ebx
mov ecx, dword [0x100dfd88]
neg eax
sbb al, al
inc al
mov byte [ecx + 0x100ddf2c], al
lea eax, [ebp - 0x56]
push esi
push eax
call ebx
mov ecx, dword [0x100dfd88]
neg eax
sbb al, al
inc al
mov byte [ecx + 0x100de94a], al
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x100dfd88]
imul eax, eax, 0x1e
add eax, 0x100ca58a
push eax
call edi
mov eax, dword [0x100dfd88]
add esp, 0x28
mov byte [eax + 0x100df368], 0
inc dword [0x100dfd88]
mov eax, dword [ebp - 0x1c8]
add eax, dword [ebp - 0x1c0]
push 0x100938e0
push eax
call dword [sym.imp.MSVCR100.dll_strtok]
pop ecx
pop ecx
mov dword [ebp - 0x1c0], eax
test eax, eax
jne 0x10052771
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1008344f
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 + 0x100dd50e]
add esp, 0xc
cmp eax, dword [ebp - 0x1bc]
jne 0x100529f5
movzx eax, byte [esi + 0x100ddf2c]
cmp eax, dword [ebp - 0x1b8]
jne 0x100529f5
movzx eax, byte [esi + 0x100de94a]
cmp eax, dword [ebp - 0x1c4]
je 0x10052954
mov al, byte [ebp - 0x1bc]
mov byte [esi + 0x100dd50e], al
mov al, byte [ebp - 0x1b8]
mov byte [esi + 0x100ddf2c], al
mov al, byte [ebp - 0x1c4]
mov byte [esi + 0x100de94a], al
mov byte [esi + 0x100df368], 0
jmp 0x10052954