Function at 0x414740
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43e48b
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x62c], eax
push ebx
push ebp
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x640]
mov dword fs:[0], eax
mov eax, dword [esp + 0x650]
mov dword [esp + 0x20], eax
xor eax, eax
push 0x206
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x2e]
push ecx
mov dword [esp + 0x28], edx
mov word [esp + 0x30], ax
call fcn.0042aa60
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x242]
push eax
mov word [esp + 0x244], dx
call fcn.0042aa60
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x456]
push edx
mov word [esp + 0x458], cx
call fcn.0042aa60
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
add esp, 0x24
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea ebx, [esi + 0xe64]
push ebx
push 0
push str.gamecount
push str.game
mov dword [esp + 0x658], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
mov ebp, 1
cmp eax, ebp
mov dword [esp + 0x18], eax
jle 0x414882
lea esp, [esp]
push ebp
push str.name_d
lea edi, [esp + 0x18]
call fcn.004026d0
mov ecx, dword [esp + 0x18]
add esp, 8
push ebx
push 0x208
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x41487c
inc ebp
cmp ebp, dword [esp + 0x18]
jl 0x414830
jmp 0x414882
mov dword [esi + 0x10a0], ebp
mov ecx, dword [esi + 0x10a0]
push ecx
push str.headcount_d
lea edi, [esp + 0x18]
call fcn.004026d0
mov edx, dword [esp + 0x18]
add esp, 8
push ebx
push 0
push edx
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
mov ebp, 1
cmp eax, ebp
mov dword [esp + 0x18], eax
jle 0x41491d
jmp 0x4148c0
mov eax, dword [esi + 0x10a0]
push ebp
push eax
push str.head_d__d
lea edi, [esp + 0x1c]
call fcn.004026d0
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push 0x208
lea ecx, [esp + 0x234]
push ecx
push 0
push edx
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x414916
mov dword [esi + 0x10a4], ebp
inc ebp
cmp ebp, dword [esp + 0x18]
jl 0x4148c0
mov edx, dword [esi + 0x10a4]
mov eax, dword [esi + 0x10a0]
push edx
push eax
push str.item_d_count_d
lea edi, [esp + 0x1c]
call fcn.004026d0
mov edi, dword [esp + 0x1c]
add esp, 0xc
push ebx
push 0
push edi
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
mov ebp, 1
cmp eax, ebp
mov dword [esp + 0x14], eax
jle 0x4149c4
lea ecx, [ecx]
mov ecx, dword [esi + 0x10a4]
mov edx, dword [esi + 0x10a0]
push ebp
push ecx
push edx
push str.item_d__d__d
lea edi, [esp + 0x20]
call fcn.004026d0
mov edi, dword [esp + 0x20]
add esp, 0x10
push ebx
push 0x208
lea eax, [esp + 0x43c]
push eax
push 0
push edi
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x434]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4149bd
mov dword [esi + 0x10a8], ebp
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x414960
lea eax, [edi - 0x10]
mov dword [esp + 0x648], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4149eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x640]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.0042825b
add esp, 0x63c
ret 4