Function at 0x418210
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43f8b7
mov eax, dword fs:[0]
push eax
sub esp, 0x520
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x518], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x534]
mov dword fs:[0], eax
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x544]
mov ecx, 0x44e98c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
xor esi, esi
mov dword [esp + 0x53c], esi
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x53c], 1
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
push 0x206
lea ecx, [esp + 0x32a]
xor eax, eax
push esi
mov byte [esp + 0x544], 2
push ecx
mov word [esp + 0x330], ax
call fcn.0042aa60
mov edx, dword [0x44e98c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x44e98c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x53c], 3
cmp dword [ebp + 0x10a0], esi
je 0x41882f
cmp dword [ebp + 0x10a4], esi
je 0x41882f
cmp dword [ebp + 0x10a8], esi
je 0x41882f
lea edi, [ebp + 0xe30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ebp + 0x10c0]
call fcn.0041eaf0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0x10a8]
mov edx, dword [ebp + 0x10a4]
mov eax, dword [ebp + 0x10a0]
push ecx
push edx
push eax
push str.item_d__d__d_count
lea edi, [esp + 0x38]
call fcn.004026d0
mov ecx, dword [esp + 0x38]
add esp, 0x10
lea eax, [ebp + 0xe64]
push eax
push 0
push ecx
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor esi, esi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x4187a7
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x56]
push eax
mov word [esp + 0x58], dx
call fcn.0042aa60
add esp, 0xc
push 0xd0
lea ecx, [esp + 0x258]
push 0
push ecx
call fcn.0042aa60
mov edx, dword [ebp + 0x10a8]
mov eax, dword [ebp + 0x10a4]
mov ecx, dword [ebp + 0x10a0]
add esp, 0xc
inc esi
push esi
push edx
push eax
push ecx
push str.house_d__d__d__d
lea edi, [esp + 0x3c]
mov dword [esp + 0x44], esi
call fcn.004026d0
add esp, 0x14
lea eax, [ebp + 0xe64]
push eax
mov eax, dword [esp + 0x2c]
push 0x208
lea edx, [esp + 0x32c]
push edx
push 0
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
mov dword [esp + 0x4c], esp
mov eax, esp
push 0x2f
push eax
call fcn.004106b0
push ecx
mov eax, esp
mov dword [esp + 0x4c], esp
push eax
lea ecx, [esp + 0x330]
mov byte [esp + 0x548], 4
call fcn.00403620
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x548], 3
call fcn.00410070
cmp dword [esp + 0x1c], 0
jle 0x418451
mov eax, dword [esp + 0x18]
jmp 0x41845c
lea esi, [esp + 0x14]
call fcn.004033e0
mov eax, esi
lea edi, [esp + 0x20]
call fcn.00403130
mov edi, dword [esp + 0x20]
cmp dword [edi - 0xc], 0
jle 0x418520
push 0x3a
push edi
call fcn.00429466
add esp, 8
test eax, eax
je 0x418520
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x418520
mov ebx, 1
lea ecx, [esp + 0x38]
lea edx, [esp + 0x20]
mov dword [esp + 0x320], ebx
call fcn.004023f0
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea edx, [esp + 0x2cc]
push edx
call edi
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 1]
lea esi, [esp + 0x40]
lea edx, [esp + 0x20]
call fcn.00408710
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x2f8]
push ecx
call edi
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41853a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41853a
push edi
lea ecx, [esp + 0x2cc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 1
cmp dword [esp + 0x1c], ebx
jle 0x418549
mov esi, dword [esp + 0x18]
add esi, 4
jmp 0x418552
lea esi, [esp + 0x14]
call fcn.004033e0
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], ebx
jle 0x418566
mov edx, dword [eax + 4]
push edx
push esi
call fcn.00403440
mov esi, dword [esi]
test esi, esi
jne 0x418570
xor eax, eax
jmp 0x418584
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418575
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x28]
call fcn.00403540
mov ebx, dword [esp + 0x24]
cmp dword [ebx - 0xc], 0
jle 0x418643
push 0x3a
push ebx
call fcn.00429466
add esp, 8
test eax, eax
je 0x418643
sub eax, ebx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x418643
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x24]
call fcn.004023f0
mov eax, dword [eax]
push eax
call fcn.004299af
mov dword [esp + 0x2f4], eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4185ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 1]
lea esi, [esp + 0x2c]
lea edx, [esp + 0x24]
call fcn.00408710
mov eax, dword [eax]
push eax
call fcn.004299af
mov dword [esp + 0x320], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x418653
push ebx
call fcn.004299af
add esp, 4
mov dword [esp + 0x2f0], eax
cmp dword [esp + 0x1c], 2
jle 0x418663
mov esi, dword [esp + 0x18]
add esi, 8
jmp 0x41866c
lea esi, [esp + 0x14]
call fcn.004033e0
mov eax, dword [esi]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
jle 0x418685
mov ecx, dword [eax + 4]
push ecx
push esi
call fcn.00403440
mov esi, dword [esi]
push esi
lea edx, [esp + 0x50]
push edx
call edi
cmp dword [esp + 0x1c], 5
jle 0x41869f
mov esi, dword [esp + 0x18]
add esi, 0x14
jmp 0x4186a8
lea esi, [esp + 0x14]
call fcn.004033e0
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], ebx
jle 0x4186bc
mov eax, dword [eax + 4]
push eax
push esi
call fcn.00403440
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x258]
push ecx
call edi
cmp dword [esp + 0x1c], 3
jle 0x4186d9
mov esi, dword [esp + 0x18]
add esi, 0xc
jmp 0x4186e2
lea esi, [esp + 0x14]
call fcn.004033e0
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], ebx
jle 0x4186f6
mov edx, dword [eax + 4]
push edx
push esi
call fcn.00403440
mov esi, dword [esi]
push esi
call fcn.004299af
add esp, 4
cmp dword [esp + 0x1c], 4
mov dword [esp + 0x2bc], eax
jle 0x418718
mov esi, dword [esp + 0x18]
add esi, 0x10
jmp 0x418721
lea esi, [esp + 0x14]
call fcn.004033e0
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], ebx
jle 0x418735
mov eax, dword [eax + 4]
push eax
push esi
call fcn.00403440
mov eax, dword [esi]
push eax
call fcn.004299af
add esp, 4
mov dword [esp + 0x2c0], eax
xor eax, eax
lea ebx, [ebp + 0xe30]
push ebx
mov dword [esp + 0x2bc], eax
mov dword [esp + 0x2c8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0x10d4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x4c]
push ecx
push edx
push esi
call fcn.0041d7e0
lea ecx, [ebp + 0x10c0]
mov edi, eax
call fcn.0041d820
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
push ebx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x34]
jl 0x418384
mov ebx, dword [esp + 0x24]
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x60], esp
push eax
lea ecx, [ebp + 0x10c0]
call fcn.0041cd40
mov ecx, ebp
call fcn.00416610
lea esi, [esp + 0x14]
call fcn.00410010
lea eax, [ebx - 0x10]
mov byte [esp + 0x53c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4187f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x53c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418818
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x53c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
jmp 0x4188ad
add eax, 0xfffffff0
mov byte [esp + 0x53c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418853
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x53c], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418877
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x53c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41889f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x53c], 0xffffffff
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4188c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x534]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.0042825b
add esp, 0x52c
ret 4