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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e44c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1870
call fcn.00436b50
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x186c], eax
push ebx
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x1880]
mov dword fs:[0], eax
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ebx, ecx
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x1888], 0
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x5e]
push ecx
mov word [esp + 0x60], ax
call fcn.0042aa60
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x682]
push eax
mov word [esp + 0x684], dx
call fcn.0042aa60
xor ecx, ecx
push 0xffe
push ecx
lea edx, [esp + 0x896]
push edx
mov word [esp + 0x898], cx
call fcn.0042aa60
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x28a]
push ecx
mov word [esp + 0x28c], ax
call fcn.0042aa60
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x49e]
push eax
mov word [esp + 0x4a0], dx
call fcn.0042aa60
add esp, 0x3c
test ebx, ebx
jne 0x4218ae
mov byte [esp + 0x1888], bl
lea eax, [edi - 0x10]
jmp 0x421c0b
push ebx
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov edi, eax
neg edi
sbb edi, edi
not edi
and edi, ebx
mov dword [esp + 0x28], edi
push str.selected
push 0x4441e4
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.HTMLayout.dll_HTMLayoutGetParentElement]
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov ebx, eax
neg ebx
sbb ebx, ebx
not ebx
and ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x188c], 3
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.HTMLayout.dll_HTMLayoutGetChildrenCount]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
jle 0x421be6
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.HTMLayout.dll_HTMLayoutGetNthChild]
mov eax, dword [esp + 0x14]
cmp edi, dword [esp + 0x1c]
jne 0x421b88
inc eax
push eax
push str.gamepath_d
lea edi, [esp + 0x18]
mov dword [esi + 0x23c], eax
call fcn.004026d0
mov eax, dword [esp + 0x18]
add esp, 8
lea ebx, [esi + 0x34]
push ebx
push 0x208
lea edx, [esp + 0x5c]
push edx
push 0
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.HTMLayout.dll_ValueInit]
lea eax, [esp + 0x54]
lea ecx, [eax + 2]
jmp 0x4219b0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4219b0
sub eax, ecx
push 0
sar eax, 1
push eax
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.HTMLayout.dll_ValueStringDataSet]
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.HTMLayout.dll_HTMLayoutControlSetValue]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.HTMLayout.dll_ValueClear]
mov ecx, dword [esi + 0x23c]
push ecx
push str.gameparam_d
lea edi, [esp + 0x18]
call fcn.004026d0
mov eax, dword [esp + 0x18]
add esp, 8
push ebx
push 0x208
lea edx, [esp + 0x674]
push edx
push 0
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.HTMLayout.dll_ValueInit]
lea eax, [esp + 0x66c]
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x421a40
sub eax, ecx
push 0
sar eax, 1
push eax
lea edx, [esp + 0x674]
push edx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.HTMLayout.dll_ValueStringDataSet]
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.HTMLayout.dll_HTMLayoutControlSetValue]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.HTMLayout.dll_ValueClear]
mov ecx, dword [esi + 0x23c]
push ecx
push str.gamedec_d
lea edi, [esp + 0x18]
call fcn.004026d0
mov eax, dword [esp + 0x18]
add esp, 8
push ebx
push 0x1000
lea edx, [esp + 0x87c]
push edx
push 0
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esi + 0x23c]
push ecx
push str.gamedown_d
call fcn.004026d0
mov eax, dword [esp + 0x18]
add esp, 8
push ebx
push 0x208
lea edx, [esp + 0x264]
push edx
push 0
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x25c]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x421af5
mov edx, dword [esi + 0x28]
sub eax, ecx
sar eax, 1
push eax
lea ecx, [esp + 0x260]
push ecx
push edx
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetElementInnerText16]
mov eax, dword [esi + 0x23c]
push eax
push str.gamenettype_d
lea edi, [esp + 0x18]
call fcn.004026d0
mov edx, dword [esp + 0x18]
add esp, 8
push ebx
push 0x208
lea ecx, [esp + 0x46c]
push ecx
push 0
push edx
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x464]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421b60
mov ecx, dword [esi + 0x2c]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x468]
push eax
push ecx
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetElementInnerText16]
mov ebx, dword [esp + 0x2c]
jmp 0x421bcf
lea edx, [esp + 0x18]
push edx
push eax
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.HTMLayout.dll_HTMLayoutGetNthChild]
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov edi, eax
neg edi
sbb edi, edi
not edi
and edi, dword [esp + 0x1c]
je 0x421bcf
push 0
push 0x4441e4
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jl 0x421936
test ebx, ebx
je 0x421bf1
push ebx
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
test edi, edi
je 0x421bfc
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
mov byte [esp + 0x1888], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1888], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x186c]
xor ecx, esp
call fcn.0042825b
mov esp, ebp
pop ebp
ret