Function at 0x419c20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43fe51
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x64c]
mov dword fs:[0], eax
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x65c]
mov esi, ecx
mov ecx, 0x44e98c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x442]
xor eax, eax
push ebx
mov dword [esp + 0x65c], ebx
push ecx
mov word [esp + 0x448], ax
call fcn.0042aa60
add esp, 0xc
mov dword [esp + 0x24], ebx
cmp esi, ebx
jne 0x419ccb
lea eax, [edi - 0x10]
mov dword [esp + 0x654], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x419fce
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov edi, eax
neg edi
sbb edi, edi
not edi
and edi, esi
mov dword [esp + 0x1c], edi
lea esi, [esp + 0x20]
lea eax, [esp + 0x1c]
call fcn.0041e570
mov byte [esp + 0x654], 2
mov eax, dword [eax]
lea edx, [eax + 8]
cmp eax, ebx
jne 0x419d03
mov edx, 0x44f7bc
lea esi, [ebp + 0x107c]
cmp edx, ebx
jne 0x419d11
xor eax, eax
jmp 0x419d25
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419d16
sub eax, ebx
sar eax, 1
mov ebx, eax
push edx
mov eax, esi
call fcn.00403540
mov byte [esp + 0x654], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x419d5b
dec dword [eax]
cmp dword [eax], 0
jne 0x419d5b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004284c0
add esp, 4
mov dword [esp + 0x20], 0
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
jne 0x419d85
test edi, edi
je 0x419d6e
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
mov dword [esp + 0x654], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x419fc1
lea eax, [ebp + 0xe64]
push eax
push 0
push str.gamecount
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
mov ebx, 1
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x419e43
push ebx
push str.name_d
lea edi, [esp + 0x20]
call fcn.004026d0
mov edi, dword [esp + 0x20]
add esp, 8
lea eax, [ebp + 0xe64]
push eax
push 0x208
lea ecx, [esp + 0x444]
push ecx
push 0
push edi
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
lea ecx, [esp + 0x43c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419e17
test dx, dx
je 0x419e13
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419e17
add eax, 4
add ecx, 4
test dx, dx
jne 0x419df1
xor eax, eax
jmp 0x419e1c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x419e2d
mov dword [esp + 0x24], 1
inc ebx
cmp ebx, dword [esp + 0x28]
jl 0x419db0
cmp dword [esp + 0x24], 0
jne 0x419e72
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x419e4e
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
mov dword [esp + 0x654], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x419fce
mov eax, dword [esi]
push eax
mov esi, ebp
call fcn.004198b0
test eax, eax
je 0x419fa4
xor ecx, ecx
push 0x206
mov eax, 1
push ecx
lea edx, [esp + 0x36]
push edx
mov dword [ebp + 0x10a4], eax
mov dword [ebp + 0x10a8], eax
mov word [esp + 0x38], cx
call fcn.0042aa60
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x23e]
push ecx
mov word [esp + 0x240], ax
call fcn.0042aa60
mov edx, dword [ebp + 0x10a0]
add esp, 0xc
push edx
push str.head_d_1
lea edi, [esp + 0x20]
call fcn.004026d0
mov ecx, dword [esp + 0x20]
add esp, 8
lea eax, [ebp + 0xe64]
push eax
push 0x208
lea eax, [esp + 0x34]
push eax
push 0
push ecx
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x2c]
lea eax, [ebp + 0x1084]
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x419f17
sub ecx, edx
sar ecx, 1
lea edx, [esp + 0x2c]
push edx
mov ebx, ecx
call fcn.00403540
mov eax, dword [ebp + 0x10a0]
push eax
push str.item_d_1_1
lea edi, [esp + 0x20]
call fcn.004026d0
mov edi, dword [esp + 0x20]
add esp, 8
lea eax, [ebp + 0xe64]
push eax
push 0x208
lea ecx, [esp + 0x23c]
push ecx
push 0
push edi
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x234]
lea eax, [ebp + 0x1088]
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x419f80
sub ecx, edx
sar ecx, 1
lea edx, [esp + 0x234]
push edx
mov ebx, ecx
call fcn.00403540
push ebp
call fcn.00418210
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x419fb3
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
lea eax, [edi - 0x10]
mov dword [esp + 0x654], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419fda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x64c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.0042825b
add esp, 0x644
ret 4