Function at 0x10053430
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.100485f0
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 0x1005373d
push ebx
jmp 0x100534a6
mov edi, dword [ebp - 0x1bc]
mov eax, edi
lea edx, [eax + 1]
jmp 0x100534b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100534b0
sub eax, edx
cmp byte [edi], 0x7c
mov dword [ebp - 0x1c0], eax
jne 0x100534df
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 0x100534d0
jmp 0x10053713
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 0x1005351a
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 0x1005352e
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 0x10053524
lea ecx, [ebp - 0x1b4]
push 0x10094ba0
push ecx
call esi
add esp, 8
test eax, eax
je 0x10053598
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 0x10053554
push 0x10094ba0
push 0
inc ebx
add esi, 0x32
call dword [sym.imp.MSVCR100.dll_strtok]
add esp, 8
test eax, eax
jne 0x10053550
cmp ebx, 1
jne 0x10053598
jmp 0x10053580
mov cl, byte [ebp + eax - 0xec]
mov byte [ebp + eax - 0x150], cl
inc eax
test cl, cl
jne 0x10053580
jmp 0x10053713
mov byte [ebp - 0x150], 0
cmp ebx, 4
jne 0x10053713
mov ebx, dword [0x100ea3a8]
xor esi, esi
test ebx, ebx
jle 0x1005364e
mov dword [ebp - 0x1b8], 0x100d4baa
mov edi, 0x100b1f38
jmp 0x100535d0
lea ecx, [ebp - 0xec]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100535f8
test dl, dl
je 0x100535f4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100535f8
add eax, 2
add ecx, 2
test dl, dl
jne 0x100535d8
xor eax, eax
jmp 0x100535fd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10053639
mov eax, dword [ebp - 0x1b8]
lea ecx, [ebp - 0x24]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10053630
test dl, dl
je 0x1005362c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10053630
add eax, 2
add ecx, 2
test dl, dl
jne 0x10053610
xor eax, eax
jmp 0x10053635
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100536a0
add dword [ebp - 0x1b8], 0x1e
inc esi
add edi, 0x37
cmp esi, ebx
jl 0x100535d0
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 0x10053660
mov ecx, 0x1009ca80
lea eax, [ebp - 0xba]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005374d
test dl, dl
je 0x10053699
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005374d
add eax, 2
add ecx, 2
test dl, dl
jne 0x10053675
xor eax, eax
jmp 0x10053752
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 0x100536ee
movzx ecx, byte [esi + 0x100e854c]
cmp ecx, dword [ebp - 0x1b8]
jne 0x100536ee
movzx edx, byte [esi + 0x100e8f6a]
cmp edx, eax
je 0x1005370d
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 0x100534a0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10086786
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 0x10053790
test dl, dl
je 0x1005378c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10053790
add eax, 2
add ecx, 2
test dl, dl
jne 0x10053770
xor eax, eax
jmp 0x10053795
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 0x100537d0
test dl, dl
je 0x100537cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100537d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100537b0
xor eax, eax
jmp 0x100537d5
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 0x10053800
mov eax, dword [0x100ea3a8]
mov byte [eax + 0x100e9988], 0
inc dword [0x100ea3a8]
jmp 0x10053713