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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43eea9
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x44e98c
mov dword [esp + 0x30], esi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x270], 0
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x270], 1
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x270], 2
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x5e]
push ecx
mov word [esp + 0x60], ax
call fcn.0042aa60
add esp, 0xc
cmp dword [esi + 0x23c], 0
jne 0x4224a4
lea eax, [edi - 0x10]
mov byte [esp + 0x270], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422424
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x270], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422448
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422470
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42292a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42292a
cmp dword [esi + 0x20], 0
jne 0x4224c7
lea eax, [edi - 0x10]
mov byte [esp + 0x270], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x422418
add esi, 0x14
push esi
lea esi, [esp + 0x38]
call fcn.00402fe0
lea eax, [esp + 0x20]
mov edi, esi
call fcn.00402f30
mov byte [esp + 0x270], 5
mov eax, dword [eax]
test eax, eax
je 0x4224f8
lea edx, [eax + 8]
test edx, edx
jne 0x4224fd
xor eax, eax
jmp 0x422511
mov edx, 0x44f7bc
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422502
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x20]
call fcn.00403540
mov byte [esp + 0x270], 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x422541
dec dword [eax]
cmp dword [eax], 0
jne 0x422541
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004284c0
add esp, 4
mov ebx, dword [esp + 0x1c]
cmp dword [ebx - 0xc], 0
jne 0x4225ca
push 0x30
push str.error_
push 0x445464
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.HTMLayout.dll_ValueClear]
mov byte [esp + 0x270], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422592
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4225ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 0
lea eax, [ebx - 0x10]
jmp 0x422457
push ebx
call fcn.0041c6f0
add esp, 4
test eax, eax
jne 0x422616
push 0x30
push str.error_
push 0x445484
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.HTMLayout.dll_ValueClear]
mov byte [esp + 0x270], 2
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 0x422586
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x23c]
push ecx
push str.gameexe_d
lea edi, [esp + 0x1c]
call fcn.004026d0
add esp, 8
lea eax, [esi + 0x34]
push eax
mov eax, dword [esp + 0x18]
push 0x208
lea edx, [esp + 0x5c]
push edx
push 0
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x54]
lea edi, [esp + 0x18]
call fcn.004035e0
lea eax, [esp + 0x1c]
lea edi, [esp + 0x14]
call fcn.00403130
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jle 0x422694
push 0x7c
push edi
call fcn.00429466
add esp, 8
test eax, eax
je 0x422694
sub eax, edi
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4226f1
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x18]
call fcn.00422e30
lea edi, [esp + 0x14]
call fcn.00422e30
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4226d3
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
jl 0x4226d3
push eax
push edi
call fcn.00429a00
add esp, 8
test eax, eax
je 0x4226d3
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x422822
push 0x30
push str.error_
push 0x4454b8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x34]
push ecx
jmp 0x422900
lea esi, [esp + 0x20]
call fcn.0040b750
lea esi, [esp + 0x2c]
call fcn.0040b750
mov eax, ebx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
mov byte [esp + 0x270], 7
call fcn.004023f0
lea edi, [esp + 0x20]
mov byte [esp + 0x270], 8
call fcn.00403130
lea ecx, [esp + 0x28]
mov byte [esp + 0x270], 7
call fcn.004109f0
lea ecx, [ebx + 1]
lea esi, [esp + 0x28]
lea edx, [esp + 0x18]
call fcn.00408710
lea edi, [esp + 0x2c]
mov byte [esp + 0x270], 9
call fcn.00403130
mov ecx, esi
mov byte [esp + 0x270], 7
call fcn.004109f0
lea edi, [esp + 0x14]
call fcn.00422e30
lea edi, [esp + 0x20]
call fcn.00422e30
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x4227a7
cmp dword [esi - 0xc], 0
jl 0x4227a7
push eax
push esi
call fcn.00429a00
add esp, 8
test eax, eax
je 0x4227a7
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x422800
lea edi, [esp + 0x2c]
call fcn.00422e30
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4227d5
cmp dword [esi - 0xc], 0
jl 0x4227d5
push eax
push esi
call fcn.00429a00
add esp, 8
test eax, eax
je 0x4227d5
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x422800
push 0x30
push str.error_
push 0x4454b8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x2c]
call fcn.004109f0
lea ecx, [esp + 0x20]
call fcn.004109f0
jmp 0x4228fb
lea ecx, [esp + 0x2c]
call fcn.004109f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x270], 4
call fcn.004109f0
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 0x23c]
push eax
push str.gamepath_d
lea edi, [esp + 0x1c]
call fcn.004026d0
mov ecx, dword [esp + 0x1c]
add esp, 8
lea eax, [esi + 0x34]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ecx
push str.game
call ebx
add esi, 0x18
push esi
lea esi, [esp + 0x48]
call fcn.00402fe0
push eax
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.HTMLayout.dll_ValueCopy]
mov eax, esi
push eax
call dword [sym.imp.HTMLayout.dll_ValueClear]
lea eax, [esp + 0x28]
lea edi, [esp + 0x34]
call fcn.00402f30
mov byte [esp + 0x270], 0xa
mov eax, dword [eax]
test eax, eax
je 0x422893
add eax, 8
jmp 0x422898
mov eax, 0x44f7bc
mov edx, eax
lea edi, [esp + 0x24]
call fcn.004035e0
lea esi, [esp + 0x28]
mov byte [esp + 0x270], 4
call fcn.00402870
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x23c]
push ecx
push str.gameparam_d
lea edi, [esp + 0x1c]
call fcn.004026d0
mov edx, dword [esp + 0x2c]
add esp, 8
lea eax, [esi + 0x34]
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push str.game
call ebx
mov ecx, dword [esi + 0xc]
push 0
push 0xf060
push 0x112
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.HTMLayout.dll_ValueClear]
lea ecx, [esp + 0x18]
call fcn.004109f0
lea ecx, [esp + 0x24]
call fcn.004109f0
lea ecx, [esp + 0x1c]
call fcn.004109f0
lea ecx, [esp + 0x14]
call fcn.004109f0
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0042825b
mov esp, ebp
pop ebp
ret