Function at 0x10052d60
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.10047f60
push edi
push 0x14c08
push esi
push 0x10094b60
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 0x1009e968
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 0x1005306d
push ebx
jmp 0x10052dd6
mov edi, dword [ebp - 0x1bc]
mov eax, edi
lea edx, [eax + 1]
jmp 0x10052de0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10052de0
sub eax, edx
cmp byte [edi], 0x7c
mov dword [ebp - 0x1c0], eax
jne 0x10052e0f
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 0x10052e00
jmp 0x10053043
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 0x10052e4a
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 0x10052e5e
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 0x10052e54
lea ecx, [ebp - 0x1b4]
push 0x10094b78
push ecx
call esi
add esp, 8
test eax, eax
je 0x10052ec8
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 0x10052e84
push 0x10094b78
push 0
inc ebx
add esi, 0x32
call dword [sym.imp.MSVCR100.dll_strtok]
add esp, 8
test eax, eax
jne 0x10052e80
cmp ebx, 1
jne 0x10052ec8
jmp 0x10052eb0
mov cl, byte [ebp + eax - 0xec]
mov byte [ebp + eax - 0x150], cl
inc eax
test cl, cl
jne 0x10052eb0
jmp 0x10053043
mov byte [ebp - 0x150], 0
cmp ebx, 4
jne 0x10053043
mov ebx, dword [0x100ea3a8]
xor esi, esi
test ebx, ebx
jle 0x10052f7e
mov dword [ebp - 0x1b8], 0x100d4baa
mov edi, 0x100b1f38
jmp 0x10052f00
lea ecx, [ebp - 0xec]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10052f28
test dl, dl
je 0x10052f24
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10052f28
add eax, 2
add ecx, 2
test dl, dl
jne 0x10052f08
xor eax, eax
jmp 0x10052f2d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10052f69
mov eax, dword [ebp - 0x1b8]
lea ecx, [ebp - 0x24]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10052f60
test dl, dl
je 0x10052f5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10052f60
add eax, 2
add ecx, 2
test dl, dl
jne 0x10052f40
xor eax, eax
jmp 0x10052f65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10052fd0
add dword [ebp - 0x1b8], 0x1e
inc esi
add edi, 0x37
cmp esi, ebx
jl 0x10052f00
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 0x10052f90
mov ecx, 0x1009ca58
lea eax, [ebp - 0xba]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005307d
test dl, dl
je 0x10052fc9
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005307d
add eax, 2
add ecx, 2
test dl, dl
jne 0x10052fa5
xor eax, eax
jmp 0x10053082
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 0x1005301e
movzx ecx, byte [esi + 0x100e854c]
cmp ecx, dword [ebp - 0x1b8]
jne 0x1005301e
movzx edx, byte [esi + 0x100e8f6a]
cmp edx, eax
je 0x1005303d
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 0x1009e968
push edx
call esi
add esp, 8
mov dword [ebp - 0x1bc], eax
test eax, eax
jne 0x10052dd0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10085dc6
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, 0x1009ca58
lea eax, [ebp - 0x88]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100530c0
test dl, dl
je 0x100530bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100530c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100530a0
xor eax, eax
jmp 0x100530c5
sbb eax, eax
sbb eax, 0xffffffff
mov edx, dword [0x100ea3a8]
test eax, eax
sete cl
mov byte [edx + 0x100e854c], cl
mov ecx, 0x1009ca58
lea eax, [ebp - 0x56]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10053100
test dl, dl
je 0x100530fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10053100
add eax, 2
add ecx, 2
test dl, dl
jne 0x100530e0
xor eax, eax
jmp 0x10053105
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 0x10053130
mov eax, dword [0x100ea3a8]
mov byte [eax + 0x100e9988], 0
inc dword [0x100ea3a8]
jmp 0x10053043