Function at 0x100534d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x100ae8c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
call fcn.10048690
push edi
push 0x14c08
push esi
push 0x10094b88
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 0x1009e9c8
push esi
mov esi, dword [sym.imp.MSVCR100.dll_strtok]
call esi
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x1bc], edi
test edi, edi
je 0x100537dd
push ebx
jmp 0x10053546
mov edi, dword [ebp - 0x1bc]
mov eax, edi
lea edx, [eax + 1]
jmp 0x10053550
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10053550
sub eax, edx
cmp byte [edi], 0x7c
mov dword [ebp - 0x1c0], eax
jne 0x1005357f
lea eax, [edi + 1]
lea edx, [ebp - 0x24]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10053570
jmp 0x100537b3
push 0x64
xor ebx, ebx
lea ecx, [ebp - 0x1b4]
push ebx
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp byte [ebp - 0x150], bl
je 0x100535ba
push edi
lea edx, [ebp - 0x150]
push edx
lea eax, [ebp - 0x1b4]
push str._s__s
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
jmp 0x100535ce
lea edx, [ebp - 0x1b4]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100535c4
lea ecx, [ebp - 0x1b4]
push 0x10094ba0
push ecx
call esi
add esp, 8
test eax, eax
je 0x10053638
lea esi, [ebp - 0xec]
lea esp, [esp]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100535f4
push 0x10094ba0
push 0
inc ebx
add esi, 0x32
call dword [sym.imp.MSVCR100.dll_strtok]
add esp, 8
test eax, eax
jne 0x100535f0
cmp ebx, 1
jne 0x10053638
jmp 0x10053620
mov cl, byte [ebp + eax - 0xec]
mov byte [ebp + eax - 0x150], cl
inc eax
test cl, cl
jne 0x10053620
jmp 0x100537b3
mov byte [ebp - 0x150], 0
cmp ebx, 4
jne 0x100537b3
mov ebx, dword [0x100ea3a8]
xor esi, esi
test ebx, ebx
jle 0x100536ee
mov dword [ebp - 0x1b8], 0x100d4baa
mov edi, 0x100b1f38
jmp 0x10053670
lea ecx, [ebp - 0xec]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10053698
test dl, dl
je 0x10053694
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10053698
add eax, 2
add ecx, 2
test dl, dl
jne 0x10053678
xor eax, eax
jmp 0x1005369d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100536d9
mov eax, dword [ebp - 0x1b8]
lea ecx, [ebp - 0x24]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100536d0
test dl, dl
je 0x100536cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100536d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100536b0
xor eax, eax
jmp 0x100536d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10053740
add dword [ebp - 0x1b8], 0x1e
inc esi
add edi, 0x37
cmp esi, ebx
jl 0x10053670
mov edi, dword [ebp - 0x1bc]
imul ebx, ebx, 0x37
add ebx, 0x100b1f38
lea ecx, [ebp - 0xec]
mov edx, ebx
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10053700
mov ecx, 0x1009ca80
lea eax, [ebp - 0xba]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100537ed
test dl, dl
je 0x10053739
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100537ed
add eax, 2
add ecx, 2
test dl, dl
jne 0x10053715
xor eax, eax
jmp 0x100537f2
mov edi, dword [sym.imp.MSVCR100.dll_atoi]
lea edx, [ebp - 0xba]
push edx
call edi
mov ebx, eax
lea eax, [ebp - 0x88]
push eax
call edi
lea ecx, [ebp - 0x56]
push ecx
mov dword [ebp - 0x1b8], eax
call edi
movzx edx, byte [esi + 0x100e7b2e]
add esp, 0xc
cmp edx, ebx
jne 0x1005378e
movzx ecx, byte [esi + 0x100e854c]
cmp ecx, dword [ebp - 0x1b8]
jne 0x1005378e
movzx edx, byte [esi + 0x100e8f6a]
cmp edx, eax
je 0x100537ad
mov cl, byte [ebp - 0x1b8]
mov byte [esi + 0x100e7b2e], bl
mov byte [esi + 0x100e854c], cl
mov byte [esi + 0x100e8f6a], al
mov byte [esi + 0x100e9988], 0
mov edi, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1c0]
mov esi, dword [sym.imp.MSVCR100.dll_strtok]
lea edx, [ecx + edi + 1]
push 0x1009e9c8
push edx
call esi
add esp, 8
mov dword [ebp - 0x1bc], eax
test eax, eax
jne 0x10053540
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100867e6
mov esp, ebp
pop ebp
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [0x100ea3a8]
sete dl
mov byte [eax + 0x100e7b2e], dl
mov ecx, 0x1009ca80
lea eax, [ebp - 0x88]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10053830
test dl, dl
je 0x1005382c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10053830
add eax, 2
add ecx, 2
test dl, dl
jne 0x10053810
xor eax, eax
jmp 0x10053835
sbb eax, eax
sbb eax, 0xffffffff
mov edx, dword [0x100ea3a8]
test eax, eax
sete cl
mov byte [edx + 0x100e854c], cl
mov ecx, 0x1009ca80
lea eax, [ebp - 0x56]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10053870
test dl, dl
je 0x1005386c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10053870
add eax, 2
add ecx, 2
test dl, dl
jne 0x10053850
xor eax, eax
jmp 0x10053875
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [0x100ea3a8]
test eax, eax
sete al
mov byte [ecx + 0x100e8f6a], al
mov eax, dword [0x100ea3a8]
mov edx, eax
shl edx, 4
sub edx, eax
lea ecx, [ebp - 0x24]
lea edx, [edx*2 + 0x100d4baa]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100538a0
mov eax, dword [0x100ea3a8]
mov byte [eax + 0x100e9988], 0
inc dword [0x100ea3a8]
jmp 0x100537b3