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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xe95c
call fcn.004140a0
mov eax, dword [0x4312d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x809], 1
push 0
mov eax, dword [0x43b62c]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov ecx, dword [0x43b628]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x800
push 0
lea edx, [ebp - 0x808]
push edx
call fcn.00413c30
add esp, 0xc
mov dword [ebp - 0x810], 0
jmp 0x4012ec
mov eax, dword [ebp - 0x810]
add eax, 1
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 2
jge 0x401faf
cmp dword [ebp - 0x810], 0
jne 0x401310
mov ecx, dword [0x43b638]
mov dword [ebp - 0xe94c], ecx
jmp 0x40131c
mov edx, dword [0x43b63c]
mov dword [ebp - 0xe94c], edx
mov eax, dword [ebp - 0xe94c]
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x810], 0
jne 0x40133d
mov dword [ebp - 0xe950], 0x42b214
jmp 0x401347
mov dword [ebp - 0xe950], 0x42b234
mov ecx, dword [ebp - 0xe950]
push ecx
lea edx, [ebp - 0x808]
push edx
call fcn.00413be0
add esp, 8
cmp dword [ebp - 0x810], 0
jne 0x401376
mov ecx, dword [ebp + 8]
call fcn.00404a30
mov dword [ebp - 0xe954], eax
jmp 0x401384
mov ecx, dword [ebp + 0xc]
call fcn.00404a30
mov dword [ebp - 0xe954], eax
mov eax, dword [ebp - 0xe954]
mov dword [ebp - 0x84c], eax
mov ecx, dword [ebp - 0x84c]
push ecx
call fcn.004162c8
add esp, 4
test eax, eax
jne 0x4013ca
push 0x42b260
push 0x42b274
call fcn.00409190
add esp, 8
push eax
lea edx, [ebp - 0x808]
push edx
call fcn.00413be0
add esp, 8
jmp 0x4012dd
mov eax, dword [ebp - 0x84c]
push eax
call fcn.00408020
add esp, 4
cmp eax, 0xffffffff
jne 0x40143f
push 0x2000
push 0
lea ecx, [ebp - 0x2850]
push ecx
call fcn.00413c30
add esp, 0xc
mov edx, dword [ebp - 0x84c]
push edx
push str.Err_UnknownExe
push 0x42b28c
call fcn.00409190
add esp, 8
push eax
lea eax, [ebp - 0x2850]
push eax
call fcn.00404400
add esp, 0xc
lea ecx, [ebp - 0x2850]
push ecx
lea edx, [ebp - 0x808]
push edx
call fcn.00413be0
add esp, 8
mov byte [ebp - 0x809], 0
jmp 0x4012dd
mov eax, dword [ebp - 0x84c]
push eax
call fcn.00408020
add esp, 4
push eax
call fcn.00408180
add esp, 4
movzx ecx, al
xor edx, edx
cmp dword [ebp - 0x810], 0
sete dl
cmp ecx, edx
je 0x401553
push 0x2000
push 0
lea eax, [ebp - 0x4850]
push eax
call fcn.00413c30
add esp, 0xc
cmp dword [ebp - 0x810], 0
jne 0x4014a7
push 0x42b294
push 0x42b2a0
call fcn.00409190
add esp, 8
mov dword [ebp - 0xe958], eax
jmp 0x4014bf
push 0x42b2a8
push 0x42b2b8
call fcn.00409190
add esp, 8
mov dword [ebp - 0xe958], eax
cmp dword [ebp - 0x810], 0
jne 0x4014e2
push str.ParamSettings
push 0x42b2d0
call fcn.00409190
add esp, 8
mov dword [ebp - 0xe95c], eax
jmp 0x4014fa
push str.ParamGame
push 0x42b2e4
call fcn.00409190
add esp, 8
mov dword [ebp - 0xe95c], eax
mov ecx, dword [ebp - 0xe958]
push ecx
mov edx, dword [ebp - 0xe95c]
push edx
mov eax, dword [ebp - 0x84c]
push eax
push str.Err_WrongExeType
push 0x42b300
call fcn.00409190
add esp, 8
push eax
lea ecx, [ebp - 0x4850]
push ecx
call fcn.00404400
add esp, 0x14
lea edx, [ebp - 0x4850]
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.00413be0
add esp, 8
mov byte [ebp - 0x809], 0
jmp 0x4012dd
push 0x42b308
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x830], eax
push 0x42b324
mov ecx, dword [ebp - 0x830]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x828], eax
push 0x42b334
mov edx, dword [ebp - 0x84c]
push edx
call fcn.004162b1
add esp, 8
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
je 0x401f57
push 0x42b33c
push str.kernel32.dll
mov eax, dword [ebp - 0x824]
push eax
call fcn.00408ed0
add esp, 0xc
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
jne 0x40161e
push 0x2000
push 0
lea ecx, [ebp - 0x88b0]
push ecx
call fcn.00413c30
add esp, 0xc
mov edx, dword [ebp - 0x84c]
push edx
push str._ERROR___nCouldnt_find_LoadLibraryA_in_n_s.
lea eax, [ebp - 0x88b0]
push eax
call fcn.00404400
add esp, 0xc
lea ecx, [ebp - 0x88b0]
push ecx
lea edx, [ebp - 0x808]
push edx
call fcn.00413be0
add esp, 8
mov byte [ebp - 0x809], 0
jmp 0x4012dd
mov eax, dword [ebp - 0x824]
push eax
call fcn.00408b90
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x40164e
mov edx, dword [ebp - 0x824]
push edx
push 1
push 4
lea eax, [ebp - 0x844]
push eax
call fcn.004161ce
add esp, 0x10
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00408c80
add esp, 4
movzx edx, al
test edx, edx
je 0x40167e
mov eax, dword [ebp - 0x824]
push eax
push 1
push 4
lea ecx, [ebp - 0x820]
push ecx
call fcn.004161ce
add esp, 0x10
push 0x28
push 0
lea edx, [ebp - 0x48a4]
push edx
call fcn.00413c30
add esp, 0xc
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x81c], 0
push 0x42b3d8
mov eax, dword [ebp - 0x824]
push eax
call fcn.00408a10
add esp, 8
mov byte [ebp - 0x68a9], al
movzx ecx, byte [ebp - 0x68a9]
test ecx, ecx
jne 0x4016e4
push 0x42b3e0
mov edx, dword [ebp - 0x824]
push edx
call fcn.00408a10
add esp, 8
mov byte [ebp - 0x68a9], al
movzx eax, byte [ebp - 0x68a9]
test eax, eax
jne 0x401709
push 0x42b3e8
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00408a10
add esp, 8
mov byte [ebp - 0x68a9], al
movzx edx, byte [ebp - 0x68a9]
test edx, edx
je 0x4017f3
mov eax, dword [ebp - 0x824]
push eax
push 1
push 0x28
lea ecx, [ebp - 0x48a4]
push ecx
call fcn.004161ce
add esp, 0x10
mov eax, dword [ebp - 0x4894]
xor edx, edx
mov ecx, 0x80
div ecx
mov dword [ebp - 0x88b4], edx
cmp dword [ebp - 0x88b4], 0
jle 0x401794
mov edx, 0x80
sub edx, dword [ebp - 0x88b4]
add edx, dword [ebp - 0x4894]
mov dword [ebp - 0x4894], edx
push 1
push 0xffffffffffffffd8
mov eax, dword [ebp - 0x824]
push eax
call fcn.00415ea9
add esp, 0xc
mov ecx, dword [ebp - 0x824]
push ecx
push 1
push 0x28
lea edx, [ebp - 0x48a4]
push edx
call fcn.00415d9d
add esp, 0x10
mov eax, dword [ebp - 0x4898]
add eax, dword [ebp - 0x4894]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x4890], 0
je 0x4017c3
mov ecx, dword [ebp - 0x4890]
add ecx, dword [ebp - 0x4894]
mov dword [ebp - 0x83c], ecx
jmp 0x4017d5
mov edx, dword [ebp - 0x4898]
add edx, dword [ebp - 0x4894]
mov dword [ebp - 0x83c], edx
mov eax, dword [ebp - 0x83c]
sub eax, 0x20
mov dword [ebp - 0x83c], eax
mov ecx, dword [ebp - 0x81c]
sub ecx, 0x20
mov dword [ebp - 0x81c], ecx
movzx edx, byte [ebp + 0x14]
test edx, edx
jne 0x40180f
mov eax, dword [ebp - 0x83c]
push eax
push 0x42b3ec
call fcn.00401000
add esp, 8
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x40182b
mov edx, dword [ebp - 0x81c]
push edx
push 0x42b410
call fcn.00401000
add esp, 8
cmp dword [ebp - 0x83c], 0
je 0x4019ef
push 0x20
push 0
lea eax, [ebp - 0x88f4]
push eax
call fcn.00413c30
add esp, 0xc
push 0x20
push 0
lea ecx, [ebp - 0x88d4]
push ecx
call fcn.00413c30
add esp, 0xc
push 0
mov edx, dword [ebp - 0x83c]
push edx
mov eax, dword [ebp - 0x824]
push eax
call fcn.00415ea9
add esp, 0xc
mov ecx, dword [ebp - 0x824]
push ecx
push 1
push 0x20
lea edx, [ebp - 0x88d4]
push edx
call fcn.004161ce
add esp, 0x10
push 0x20
lea eax, [ebp - 0x88f4]
push eax
lea ecx, [ebp - 0x88d4]
push ecx
call fcn.004145bb
add esp, 0xc
test eax, eax
jne 0x401994
push 1
push 0xffffffffffffffe0
mov edx, dword [ebp - 0x824]
push edx
call fcn.00415ea9
add esp, 0xc
lea eax, [ebp - 0x88d4]
mov dword [ebp - 0x88f8], eax
mov ecx, dword [ebp - 0x88f8]
mov edx, dword [ebp - 0x844]
mov dword [ecx], edx
mov eax, dword [ebp - 0x88f8]
mov ecx, dword [ebp - 0x828]
mov dword [eax + 4], ecx
cmp dword [ebp - 0x810], 0
jne 0x40191c
push 0x439628
call fcn.00414530
add esp, 4
add eax, 1
push eax
push 0x439628
lea edx, [ebp - 0x88cc]
push edx
call fcn.004141c0
add esp, 0xc
jmp 0x401941
push 0x43a628
call fcn.00414530
add esp, 4
add eax, 1
push eax
push 0x43a628
lea eax, [ebp - 0x88cc]
push eax
call fcn.004141c0
add esp, 0xc
mov ecx, dword [ebp - 0x824]
push ecx
push 1
push 0x20
lea edx, [ebp - 0x88d4]
push edx
call fcn.00415d9d
add esp, 0x10
mov eax, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0x820]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x848], edx
mov eax, dword [ebp - 0x848]
add eax, 4
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x820]
add ecx, dword [ebp - 0x82c]
mov dword [ebp - 0x848], ecx
jmp 0x4019ef
mov edx, dword [ebp - 0x824]
push edx
call fcn.00414142
add esp, 4
push 0x2000
push 0
lea eax, [ebp - 0xa8f8]
push eax
call fcn.00413c30
add esp, 0xc
mov ecx, dword [ebp - 0x84c]
push ecx
push str._INFORMATION___nKitServer_8_is_already_installed__1__for_n_s.
lea edx, [ebp - 0xa8f8]
push edx
call fcn.00404400
add esp, 0xc
lea eax, [ebp - 0xa8f8]
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.00413be0
add esp, 8
jmp 0x4012dd
push 0x28
push 0
lea edx, [ebp - 0x487c]
push edx
call fcn.00413c30
add esp, 0xc
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x838], 0
push 0x42b4ec
mov eax, dword [ebp - 0x824]
push eax
call fcn.00408a10
add esp, 8
mov byte [ebp - 0x4851], al
movzx ecx, byte [ebp - 0x4851]
test ecx, ecx
jne 0x401a55
push 0x42b4f4
mov edx, dword [ebp - 0x824]
push edx
call fcn.00408a10
add esp, 8
mov byte [ebp - 0x4851], al
movzx eax, byte [ebp - 0x4851]
test eax, eax
jne 0x401a7a
push 0x42b4fc
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00408a10
add esp, 8
mov byte [ebp - 0x4851], al
movzx edx, byte [ebp - 0x4851]
test edx, edx
jne 0x401a9f
push 0x42b207
mov eax, dword [ebp - 0x824]
push eax
call fcn.00408a10
add esp, 8
mov byte [ebp - 0x4851], al
movzx ecx, byte [ebp - 0x4851]
test ecx, ecx
je 0x401b8b
mov edx, dword [ebp - 0x824]
push edx
push 1
push 0x28
lea eax, [ebp - 0x487c]
push eax
call fcn.004161ce
add esp, 0x10
mov eax, dword [ebp - 0x486c]
xor edx, edx
mov ecx, 0x40
div ecx
mov dword [ebp - 0xa8fc], edx
cmp dword [ebp - 0xa8fc], 0
jle 0x401b2a
mov edx, 0x40
sub edx, dword [ebp - 0xa8fc]
add edx, dword [ebp - 0x486c]
mov dword [ebp - 0x486c], edx
push 1
push 0xffffffffffffffd8
mov eax, dword [ebp - 0x824]
push eax
call fcn.00415ea9
add esp, 0xc
mov ecx, dword [ebp - 0x824]
push ecx
push 1
push 0x28
lea edx, [ebp - 0x487c]
push edx
call fcn.00415d9d
add esp, 0x10
mov eax, dword [ebp - 0x4870]
add eax, dword [ebp - 0x486c]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x4868], 0
je 0x401b59
mov ecx, dword [ebp - 0x4868]
add ecx, dword [ebp - 0x486c]
mov dword [ebp - 0x818], ecx
jmp 0x401b6b
mov edx, dword [ebp - 0x4870]
add edx, dword [ebp - 0x486c]
mov dword [ebp - 0x818], edx
mov eax, dword [ebp - 0x818]
sub eax, 0x20
mov dword [ebp - 0x818], eax
mov ecx, dword [ebp - 0x838]
sub ecx, 0x20
mov dword [ebp - 0x838], ecx
jmp 0x401ba9
movzx edx, byte [ebp + 0x14]
test edx, edx
jne 0x401ba2
push 0
push str.section_header_for_.text_not_found
call fcn.00401000
add esp, 8
mov byte [ebp - 0x809], 0
movzx eax, byte [ebp + 0x14]
test eax, eax
jne 0x401bc5
mov ecx, dword [ebp - 0x818]
push ecx
push 0x42b42c
call fcn.00401000
add esp, 8
movzx edx, byte [ebp + 0x14]
test edx, edx
jne 0x401be1
mov eax, dword [ebp - 0x838]
push eax
push 0x42b504
call fcn.00401000
add esp, 8
cmp dword [ebp - 0x818], 0
je 0x401eca
push 0x20
push 0
lea ecx, [ebp - 0xa93c]
push ecx
call fcn.00413c30
add esp, 0xc
push 0x20
push 0
lea edx, [ebp - 0xa91c]
push edx
call fcn.00413c30
add esp, 0xc
push 0
mov eax, dword [ebp - 0x818]
push eax
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00415ea9
add esp, 0xc
mov edx, dword [ebp - 0x824]
push edx
push 1
push 0x20
lea eax, [ebp - 0xa91c]
push eax
call fcn.004161ce
add esp, 0x10
push 0x20
lea ecx, [ebp - 0xa93c]
push ecx
lea edx, [ebp - 0xa91c]
push edx
call fcn.004145bb
add esp, 0xc
test eax, eax
jne 0x401d2a
push 1
push 0xffffffffffffffe0
mov eax, dword [ebp - 0x824]
push eax
call fcn.00415ea9
add esp, 0xc
mov byte [ebp - 0xa91c], 0x68
lea ecx, [ebp - 0xa91b]
mov dword [ebp - 0xa940], ecx
mov edx, dword [ebp - 0xa940]
mov eax, dword [ebp - 0x814]
mov dword [edx], eax
mov byte [ebp - 0xa917], 0xff
mov byte [ebp - 0xa916], 0x15
lea ecx, [ebp - 0xa915]
mov dword [ebp - 0xa940], ecx
mov edx, dword [ebp - 0xa940]
mov eax, dword [ebp - 0x848]
mov dword [edx], eax
mov byte [ebp - 0xa911], 0xe9
lea ecx, [ebp - 0xa910]
mov dword [ebp - 0xa940], ecx
mov edx, dword [ebp - 0x844]
mov eax, dword [ebp - 0x820]
lea ecx, [eax + edx - 5]
mov edx, dword [ebp - 0x838]
mov eax, dword [ebp - 0x820]
lea edx, [eax + edx + 0xb]
sub ecx, edx
mov eax, dword [ebp - 0xa940]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x824]
push ecx
push 1
push 0x20
lea edx, [ebp - 0xa91c]
push edx
call fcn.00415d9d
add esp, 0x10
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x840], eax
jmp 0x401eca
push 4
push 0x42b56c
lea ecx, [ebp - 0xa91c]
push ecx
call fcn.004145bb
add esp, 0xc
test eax, eax
jne 0x401e6f
mov edx, dword [ebp - 0x818]
sub edx, 0x1f
mov dword [ebp - 0x818], edx
mov eax, dword [ebp - 0x838]
sub eax, 0x1f
mov dword [ebp - 0x838], eax
push 0
mov ecx, dword [ebp - 0x818]
push ecx
mov edx, dword [ebp - 0x824]
push edx
call fcn.00415ea9
add esp, 0xc
mov byte [ebp - 0xa91c], 0x68
lea eax, [ebp - 0xa91b]
mov dword [ebp - 0xa944], eax
mov ecx, dword [ebp - 0xa944]
mov edx, dword [ebp - 0x814]
mov dword [ecx], edx
mov byte [ebp - 0xa917], 0xeb
mov byte [ebp - 0xa916], 9
mov byte [ebp - 0xa90c], 0xff
mov byte [ebp - 0xa90b], 0x15
lea eax, [ebp - 0xa90a]
mov dword [ebp - 0xa944], eax
mov ecx, dword [ebp - 0xa944]
mov edx, dword [ebp - 0x848]
mov dword [ecx], edx
mov byte [ebp - 0xa906], 0xe9
lea eax, [ebp - 0xa905]
mov dword [ebp - 0xa944], eax
mov ecx, dword [ebp - 0x844]
mov edx, dword [ebp - 0x820]
lea eax, [edx + ecx - 5]
mov ecx, dword [ebp - 0x838]
mov edx, dword [ebp - 0x820]
lea ecx, [edx + ecx + 0x16]
sub eax, ecx
mov edx, dword [ebp - 0xa944]
mov dword [edx], eax
mov eax, dword [ebp - 0x824]
push eax
push 1
push 7
lea ecx, [ebp - 0xa91c]
push ecx
call fcn.00415d9d
add esp, 0x10
push 0
mov edx, dword [ebp - 0x818]
add edx, 0x10
push edx
mov eax, dword [ebp - 0x824]
push eax
call fcn.00415ea9
add esp, 0xc
mov ecx, dword [ebp - 0x824]
push ecx
push 1
push 0xb
lea edx, [ebp - 0xa90c]
push edx
call fcn.00415d9d
add esp, 0x10
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x840], eax
jmp 0x401eca
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00414142
add esp, 4
push 0x2000
push 0
lea edx, [ebp - 0xc948]
push edx
call fcn.00413c30
add esp, 0xc
mov eax, dword [ebp - 0x84c]
push eax
push str._INFORMATION___nKitServer_8_is_already_installed__2__for_n_s.
lea ecx, [ebp - 0xc948]
push ecx
call fcn.00404400
add esp, 0xc
lea edx, [ebp - 0xc948]
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.00413be0
add esp, 8
jmp 0x4012dd
mov ecx, dword [ebp - 0x824]
push ecx
call fcn.00408b90
add esp, 4
movzx edx, al
test edx, edx
je 0x401efa
mov eax, dword [ebp - 0x824]
push eax
push 1
push 4
lea ecx, [ebp - 0x840]
push ecx
call fcn.00415d9d
add esp, 0x10
mov edx, dword [ebp - 0x824]
push edx
call fcn.00414142
add esp, 4
push 0x2000
push 0
lea eax, [ebp - 0x68a8]
push eax
call fcn.00413c30
add esp, 0xc
mov ecx, dword [ebp - 0x84c]
push ecx
push str._SUCCESS___nSetup_has_installed_KitServer_8_for_n_s.
lea edx, [ebp - 0x68a8]
push edx
call fcn.00404400
add esp, 0xc
lea eax, [ebp - 0x68a8]
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.00413be0
add esp, 8
jmp 0x4012dd
push 0x2000
push 0
lea edx, [ebp - 0xe948]
push edx
call fcn.00413c30
add esp, 0xc
mov eax, dword [ebp - 0x84c]
push eax
push str._ERROR___nSetup_failed_to_install_KitServer_8_for_n_s._n_n_No_modifications_made.__nVerify_that_the_executable_is_not_nREAD_ONLY__and_try_again.
lea ecx, [ebp - 0xe948]
push ecx
call fcn.00404400
add esp, 0xc
lea edx, [ebp - 0xe948]
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.00413be0
add esp, 8
mov byte [ebp - 0x809], 0
jmp 0x4012dd
call fcn.00402a00
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x401fe4
push 0
push 0x42b7d8
push 0x42b7e4
call fcn.00409190
add esp, 8
push eax
lea edx, [ebp - 0x808]
push edx
mov eax, dword [0x434620]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x808]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00404a10
mov al, byte [ebp - 0x809]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414090
mov esp, ebp
pop ebp
ret