Function at 0x402240
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x690c
call fcn.00413f40
mov eax, dword [0x431290]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x809], 1
push 0
mov eax, dword [0x43b5ec]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov ecx, dword [0x43b5e8]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x800
push 0
lea edx, [ebp - 0x808]
push edx
call fcn.00413ad0
add esp, 0xc
mov dword [ebp - 0x810], 0
jmp 0x4022ac
mov eax, dword [ebp - 0x810]
add eax, 1
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 2
jge 0x402999
cmp dword [ebp - 0x810], 0
jne 0x4022d0
mov ecx, dword [0x43b5f8]
mov dword [ebp - 0x6904], ecx
jmp 0x4022dc
mov edx, dword [0x43b5fc]
mov dword [ebp - 0x6904], edx
mov eax, dword [ebp - 0x6904]
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x810], 0
jne 0x4022fd
mov dword [ebp - 0x6908], str.____Game_EXE:_n
jmp 0x402307
mov dword [ebp - 0x6908], str._n_n____Settings_EXE:_n
mov ecx, dword [ebp - 0x6908]
push ecx
lea edx, [ebp - 0x808]
push edx
call fcn.00413a80
add esp, 8
cmp dword [ebp - 0x810], 0
jne 0x402336
mov ecx, dword [ebp + 8]
call fcn.00404aa0
mov dword [ebp - 0x690c], eax
jmp 0x402344
mov ecx, dword [ebp + 0xc]
call fcn.00404aa0
mov dword [ebp - 0x690c], eax
mov eax, dword [ebp - 0x690c]
mov dword [ebp - 0x840], eax
mov ecx, dword [ebp - 0x840]
push ecx
call fcn.00416168
add esp, 4
test eax, eax
jne 0x40238a
push str.NoActionRequired
push 0x42b860
call fcn.00408ca0
add esp, 8
push eax
lea edx, [ebp - 0x808]
push edx
call fcn.00413a80
add esp, 8
jmp 0x40229d
push 0x42b868
mov eax, dword [ebp - 0x840]
push eax
call fcn.00416151
add esp, 8
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
je 0x402941
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.004086a0
add esp, 4
movzx edx, al
test edx, edx
je 0x4023e1
mov eax, dword [ebp - 0x824]
push eax
push 1
push 4
lea ecx, [ebp - 0x838]
push ecx
call fcn.0041606e
add esp, 0x10
push 0x28
push 0
lea edx, [ebp - 0x894]
push edx
call fcn.00413ad0
add esp, 0xc
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x81c], 0
push 0x42b870
mov eax, dword [ebp - 0x824]
push eax
call fcn.00408520
add esp, 8
mov byte [ebp - 0x2899], al
movzx ecx, byte [ebp - 0x2899]
test ecx, ecx
jne 0x402447
push 0x42b878
mov edx, dword [ebp - 0x824]
push edx
call fcn.00408520
add esp, 8
mov byte [ebp - 0x2899], al
movzx eax, byte [ebp - 0x2899]
test eax, eax
jne 0x40246c
push 0x42b880
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00408520
add esp, 8
mov byte [ebp - 0x2899], al
movzx edx, byte [ebp - 0x2899]
test edx, edx
je 0x4024f0
mov eax, dword [ebp - 0x824]
push eax
push 1
push 0x28
lea ecx, [ebp - 0x894]
push ecx
call fcn.0041606e
add esp, 0x10
mov edx, dword [ebp - 0x888]
add edx, dword [ebp - 0x884]
mov dword [ebp - 0x81c], edx
cmp dword [ebp - 0x880], 0
je 0x4024c0
mov eax, dword [ebp - 0x880]
add eax, dword [ebp - 0x884]
mov dword [ebp - 0x830], eax
jmp 0x4024d2
mov ecx, dword [ebp - 0x888]
add ecx, dword [ebp - 0x884]
mov dword [ebp - 0x830], ecx
mov edx, dword [ebp - 0x830]
sub edx, 0x20
mov dword [ebp - 0x830], edx
mov eax, dword [ebp - 0x81c]
sub eax, 0x20
mov dword [ebp - 0x81c], eax
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x40250c
mov edx, dword [ebp - 0x830]
push edx
push 0x42b884
call fcn.00401000
add esp, 8
movzx eax, byte [ebp + 0x14]
test eax, eax
jne 0x402528
mov ecx, dword [ebp - 0x81c]
push ecx
push 0x42b8a8
call fcn.00401000
add esp, 8
cmp dword [ebp - 0x830], 0
je 0x40260b
push 0x20
push 0
lea edx, [ebp - 0x28bc]
push edx
call fcn.00413ad0
add esp, 0xc
push 0
mov eax, dword [ebp - 0x830]
push eax
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00415d49
add esp, 0xc
mov edx, dword [ebp - 0x824]
push edx
push 1
push 4
lea eax, [ebp - 0x834]
push eax
call fcn.0041606e
add esp, 0x10
cmp dword [ebp - 0x834], 0
jne 0x4025de
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00413fe2
add esp, 4
push 0x2000
push 0
lea edx, [ebp - 0x48c0]
push edx
call fcn.00413ad0
add esp, 0xc
mov eax, dword [ebp - 0x840]
push eax
push str._INFORMATION___nKitserver_12_is_not_attached_to_n_s.
lea ecx, [ebp - 0x48c0]
push ecx
call fcn.00404470
add esp, 0xc
lea edx, [ebp - 0x48c0]
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.00413a80
add esp, 8
jmp 0x40229d
push 1
push 0xfffffffffffffffc
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00415d49
add esp, 0xc
mov edx, dword [ebp - 0x824]
push edx
push 1
push 0x20
lea eax, [ebp - 0x28bc]
push eax
call fcn.00415c3d
add esp, 0x10
push 0x28
push 0
lea ecx, [ebp - 0x86c]
push ecx
call fcn.00413ad0
add esp, 0xc
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x82c], 0
push 0x42b970
mov edx, dword [ebp - 0x824]
push edx
call fcn.00408520
add esp, 8
mov byte [ebp - 0x841], al
movzx eax, byte [ebp - 0x841]
test eax, eax
jne 0x402671
push str.rr02
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00408520
add esp, 8
mov byte [ebp - 0x841], al
movzx edx, byte [ebp - 0x841]
test edx, edx
jne 0x402696
push str..HEAVEN
mov eax, dword [ebp - 0x824]
push eax
call fcn.00408520
add esp, 8
mov byte [ebp - 0x841], al
movzx ecx, byte [ebp - 0x841]
test ecx, ecx
jne 0x4026bb
push 0x42b212
mov edx, dword [ebp - 0x824]
push edx
call fcn.00408520
add esp, 8
mov byte [ebp - 0x841], al
movzx eax, byte [ebp - 0x841]
test eax, eax
je 0x40273f
mov ecx, dword [ebp - 0x824]
push ecx
push 1
push 0x28
lea edx, [ebp - 0x86c]
push edx
call fcn.0041606e
add esp, 0x10
mov eax, dword [ebp - 0x860]
add eax, dword [ebp - 0x85c]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x858], 0
je 0x40270f
mov ecx, dword [ebp - 0x858]
add ecx, dword [ebp - 0x85c]
mov dword [ebp - 0x818], ecx
jmp 0x402721
mov edx, dword [ebp - 0x860]
add edx, dword [ebp - 0x85c]
mov dword [ebp - 0x818], edx
mov eax, dword [ebp - 0x818]
sub eax, 0x20
mov dword [ebp - 0x818], eax
mov ecx, dword [ebp - 0x82c]
sub ecx, 0x20
mov dword [ebp - 0x82c], ecx
movzx edx, byte [ebp + 0x14]
test edx, edx
jne 0x40275b
mov eax, dword [ebp - 0x818]
push eax
push str.codeOffset___08x
call fcn.00401000
add esp, 8
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x402777
mov edx, dword [ebp - 0x82c]
push edx
push str.codeVA___08x
call fcn.00401000
add esp, 8
cmp dword [ebp - 0x818], 0
je 0x4028b4
push 0x20
push 0
lea eax, [ebp - 0x4900]
push eax
call fcn.00413ad0
add esp, 0xc
push 0x20
push 0
lea ecx, [ebp - 0x48e0]
push ecx
call fcn.00413ad0
add esp, 0xc
push 0
mov edx, dword [ebp - 0x818]
push edx
mov eax, dword [ebp - 0x824]
push eax
call fcn.00415d49
add esp, 0xc
mov ecx, dword [ebp - 0x824]
push ecx
push 1
push 0x20
lea edx, [ebp - 0x48e0]
push edx
call fcn.0041606e
add esp, 0x10
push 4
push 0x42b9a4
lea eax, [ebp - 0x48e0]
push eax
call fcn.0041445b
add esp, 0xc
test eax, eax
jne 0x40286b
push 1
push 0xffffffffffffffc0
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00415d49
add esp, 0xc
mov edx, dword [ebp - 0x824]
push edx
push 1
push 8
push 0x42b9ac
call fcn.00415c3d
add esp, 0x10
mov eax, dword [ebp - 0x824]
push eax
push 1
push 8
push 0x42b9b8
call fcn.00415c3d
add esp, 0x10
mov ecx, dword [ebp - 0x824]
push ecx
push 1
push 8
push 0x42b9c4
call fcn.00415c3d
add esp, 0x10
mov edx, dword [ebp - 0x824]
push edx
push 1
push 8
push 0x42b9d0
call fcn.00415c3d
add esp, 0x10
jmp 0x4028b4
push 0x20
lea eax, [ebp - 0x4900]
push eax
lea ecx, [ebp - 0x48e0]
push ecx
call fcn.0041445b
add esp, 0xc
test eax, eax
je 0x4028b4
push 1
push 0xffffffffffffffe0
mov edx, dword [ebp - 0x824]
push edx
call fcn.00415d49
add esp, 0xc
mov eax, dword [ebp - 0x824]
push eax
push 1
push 0x20
lea ecx, [ebp - 0x4900]
push ecx
call fcn.00415c3d
add esp, 0x10
mov edx, dword [ebp - 0x824]
push edx
call fcn.004086a0
add esp, 4
movzx eax, al
test eax, eax
je 0x4028e4
mov ecx, dword [ebp - 0x824]
push ecx
push 1
push 4
lea edx, [ebp - 0x834]
push edx
call fcn.00415c3d
add esp, 0x10
mov eax, dword [ebp - 0x824]
push eax
call fcn.00413fe2
add esp, 4
push 0x2000
push 0
lea ecx, [ebp - 0x2898]
push ecx
call fcn.00413ad0
add esp, 0xc
mov edx, dword [ebp - 0x840]
push edx
push str._SUCCESS___nSetup_has_removed_Kitserver_12_from_n_s.
lea eax, [ebp - 0x2898]
push eax
call fcn.00404470
add esp, 0xc
lea ecx, [ebp - 0x2898]
push ecx
lea edx, [ebp - 0x808]
push edx
call fcn.00413a80
add esp, 8
jmp 0x40229d
push 0x2000
push 0
lea eax, [ebp - 0x6900]
push eax
call fcn.00413ad0
add esp, 0xc
mov ecx, dword [ebp - 0x840]
push ecx
push str._ERROR___nSetup_failed_to_remove_Kitserver_12_from_n_s._n_n_No_modifications_made.__nVerify_that_the_executable_is_not_nREAD_ONLY__and_try_again.
lea edx, [ebp - 0x6900]
push edx
call fcn.00404470
add esp, 0xc
lea eax, [ebp - 0x6900]
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.00413a80
add esp, 8
mov byte [ebp - 0x809], 0
jmp 0x40229d
call fcn.00402a00
movzx edx, byte [ebp + 0x14]
test edx, edx
jne 0x4029cf
push 0
push str.MsgTitle
push 0x42bbb0
call fcn.00408ca0
add esp, 8
push eax
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [0x4345e0]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea edx, [ebp - 0x808]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00404a80
mov al, byte [ebp - 0x809]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f30
mov esp, ebp
pop ebp
ret