Function at 0x421d00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ef38
mov eax, dword fs:[0]
push eax
sub esp, 0x8b4
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x8ac], eax
push esi
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x8c0]
mov dword fs:[0], eax
push 0x206
xor edi, edi
lea ecx, [esp + 0x9a]
xor eax, eax
push edi
push ecx
mov word [esp + 0xa0], ax
call fcn.0042aa60
push 0x206
lea eax, [esp + 0x6be]
xor edx, edx
push edi
push eax
mov word [esp + 0x6c4], dx
call fcn.0042aa60
push 0x206
lea edx, [esp + 0x2ba]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x2c0], cx
call fcn.0042aa60
push 0x206
lea ecx, [esp + 0x4ce]
xor eax, eax
push edi
push ecx
mov word [esp + 0x4d4], ax
call fcn.0042aa60
mov edx, dword [0x44e98c]
mov eax, dword [edx + 0xc]
add esp, 0x30
mov ecx, 0x44e98c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x8c8], edi
mov edx, dword [0x44e98c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44e98c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x8c8], 1
mov edx, dword [0x44e98c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44e98c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x8c8], 2
mov edx, dword [0x44e98c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44e98c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x8c8], 3
mov edx, dword [0x44e98c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44e98c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x8c8], 4
mov edx, dword [0x44e98c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44e98c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x8c8], 5
cmp dword [ebx + 0x23c], edi
jne 0x421ea5
push 0x30
push edi
push 0x4453a4
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
mov byte [esp + 0x8c8], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x422224
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x40], ecx
mov eax, 0x104
lea ecx, [esp + 0x6ac]
lea edx, [esp + 0x29c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
lea ecx, [esp + 0x3c]
xor edx, edx
xor eax, eax
push ecx
mov dword [esp + 0x40], 0x58
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0x4453c0
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 1
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0x1804
mov word [esp + 0x78], dx
mov word [esp + 0x7a], ax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
jne 0x421f49
mov byte [esp + 0x8c8], 4
lea eax, [esi - 0x10]
jmp 0x422217
mov ecx, dword [ebx + 0x23c]
push ecx
push str.gameexe_d
lea edi, [esp + 0x18]
call fcn.004026d0
mov eax, dword [esp + 0x18]
add esp, 8
lea esi, [ebx + 0x34]
push esi
push 0x208
lea edx, [esp + 0x9c]
push edx
push 0
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebx + 0x23c]
push ecx
push str.gameexedir_d
call fcn.004026d0
mov eax, dword [esp + 0x18]
add esp, 8
push esi
push 0x208
lea edx, [esp + 0x4ac]
push edx
push 0
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x94]
push ecx
call esi
test eax, eax
je 0x4221e2
lea edx, [esp + 0x94]
lea edi, [esp + 0x14]
call fcn.004035e0
lea ecx, [esp + 0x4a4]
push ecx
call esi
lea edi, [esp + 0x18]
test eax, eax
jne 0x421ffc
lea edx, [esp + 0x94]
push edx
jmp 0x422004
lea eax, [esp + 0x4a4]
push eax
push 0x445420
call fcn.004026d0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
add esp, 8
test eax, eax
jg 0x422021
or esi, 0xffffffff
jmp 0x42203b
push 0x7c
push esi
call fcn.00429466
add esp, 8
test eax, eax
jne 0x422035
or esi, 0xffffffff
jmp 0x42203b
sub eax, esi
sar eax, 1
mov esi, eax
lea edx, [esp + 0x6ac]
lea edi, [esp + 0x10]
call fcn.004035e0
call fcn.00422e30
lea edi, [esp + 0x14]
call fcn.00422e30
cmp esi, 0xffffffff
jne 0x4220ee
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.00408870
add esp, 4
test al, al
je 0x4221e2
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0xc]
push 0x30
push str.error_
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, 0x4431d0
lea edi, [esp + 0x2c]
call fcn.00410c70
mov edx, dword [ebx + 0x14]
mov ecx, edi
push ecx
push edx
call dword [sym.imp.HTMLayout.dll_HTMLayoutControlSetValue]
mov eax, edi
push eax
call dword [sym.imp.HTMLayout.dll_ValueClear]
lea ecx, [esp + 0x18]
call fcn.004109f0
lea ecx, [esp + 0x24]
call fcn.004109f0
lea ecx, [esp + 0x20]
call fcn.004109f0
lea ecx, [esp + 0x1c]
call fcn.004109f0
lea ecx, [esp + 0x14]
call fcn.004109f0
lea ecx, [esp + 0x10]
call fcn.004109f0
jmp 0x4222fb
mov eax, esi
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
call fcn.004023f0
lea edi, [esp + 0x1c]
mov byte [esp + 0x8c8], 6
call fcn.00403130
mov byte [esp + 0x8c8], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422136
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 1]
lea esi, [esp + 0x28]
lea edx, [esp + 0x14]
call fcn.00408710
lea edi, [esp + 0x20]
mov byte [esp + 0x8c8], 7
call fcn.00403130
mov byte [esp + 0x8c8], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42217f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x14]
call fcn.00408870
add esp, 4
test al, al
je 0x4221e2
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
call fcn.00408870
add esp, 4
test al, al
je 0x4221e2
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0xc]
push 0x30
push str.error_
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, 0x4431d0
lea edi, [esp + 0x2c]
call fcn.00410c70
mov eax, dword [ebx + 0x14]
mov edx, edi
push edx
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayoutControlSetValue]
mov ecx, edi
push ecx
jmp 0x4220ad
lea esi, [esp + 0x29c]
lea edi, [esp + 0x2c]
call fcn.00410c70
mov eax, dword [ebx + 0x14]
mov edx, edi
push edx
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayoutControlSetValue]
mov ecx, edi
push ecx
call dword [sym.imp.HTMLayout.dll_ValueClear]
mov byte [esp + 0x8c8], 4
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
jg 0x422230
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c8], 3
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 0x422258
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c8], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4222a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c8], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4222d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8c8], 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 0x4222fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x8c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x8ac]
xor ecx, esp
call fcn.0042825b
mov esp, ebp
pop ebp
ret