Function at 0x402a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x58b8
call fcn.00413f40
mov eax, dword [0x431290]
xor eax, ebp
mov dword [ebp - 0x24], eax
movzx eax, byte [0x4345e4]
test eax, eax
je 0x402a27
jmp 0x403098
push 0
mov ecx, dword [0x43b5ec]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov edx, dword [0x43b5e8]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0
mov byte [ebp - 4], 0
mov byte [ebp - 3], 0
mov dword [ebp - 0xc], 0
jmp 0x402a67
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x40304a
cmp dword [ebp - 0xc], 0
jne 0x402a85
mov ecx, dword [0x43b5f8]
mov dword [ebp - 0x58a8], ecx
jmp 0x402a91
mov edx, dword [0x43b5fc]
mov dword [ebp - 0x58a8], edx
mov eax, dword [ebp - 0x58a8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0xc], 0
jne 0x402aae
mov ecx, dword [0x43b604]
mov dword [ebp - 0x58ac], ecx
jmp 0x402aba
mov edx, dword [0x43b5f0]
mov dword [ebp - 0x58ac], edx
mov eax, dword [ebp - 0x58ac]
mov dword [ebp - 0x20], eax
push 0x2000
push 0
lea ecx, [ebp - 0x2028]
push ecx
call fcn.00413ad0
add esp, 0xc
push 0x42bbb8
lea edx, [ebp - 0x2028]
push edx
call fcn.00413aae
add esp, 8
lea eax, [ebp - 0x2028]
push eax
call fcn.00416168
add esp, 4
lea ecx, [ebp + eax*2 - 0x2028]
mov dword [ebp - 0x10], ecx
push 0
push 0
push 0x147
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402b3a
push 0x42bbc0
push 0
push 0xc
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402a5e
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0x148
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x2028]
push ecx
call fcn.00407d10
add esp, 4
cmp eax, 0xffffffff
jne 0x402b7d
push 0x42bbc8
push 0
push 0xc
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402a5e
lea eax, [ebp - 0x2028]
push eax
call fcn.00407d10
add esp, 4
push eax
call fcn.00407e70
add esp, 4
movzx ecx, al
xor edx, edx
cmp dword [ebp - 0xc], 0
sete dl
cmp ecx, edx
je 0x402c14
cmp dword [ebp - 0xc], 0
jne 0x402bc0
push str.You_selected_a_settings_executable_instead_a_a_game_executable.
push 0
push 0xc
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402c0f
push 0x800
push 0
lea ecx, [ebp - 0x2828]
push ecx
call fcn.00413ad0
add esp, 0xc
lea edx, [ebp - 0x2028]
push edx
call fcn.00407d10
add esp, 4
push eax
push str.You_selected_a_game_executable_instead_a_a_settings__executable__type_d_
lea eax, [ebp - 0x2828]
push eax
call fcn.00404470
add esp, 0xc
lea ecx, [ebp - 0x2828]
push ecx
push 0
push 0xc
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402a5e
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 8], 1
push 0x42bd54
lea ecx, [ebp - 0x2028]
push ecx
call fcn.00416151
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x403032
push 0x28
push 0
lea edx, [ebp - 0x2854]
push edx
call fcn.00413ad0
add esp, 0xc
mov dword [ebp - 0x2858], 0
mov dword [ebp - 0x282c], 0
push str..rdata
mov eax, dword [ebp - 0x14]
push eax
call fcn.00408520
add esp, 8
mov byte [ebp - 0x2859], al
movzx ecx, byte [ebp - 0x2859]
test ecx, ecx
jne 0x402c9d
push str..rsrc
mov edx, dword [ebp - 0x14]
push edx
call fcn.00408520
add esp, 8
mov byte [ebp - 0x2859], al
movzx eax, byte [ebp - 0x2859]
test eax, eax
jne 0x402cbf
push 0x42bbc4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00408520
add esp, 8
mov byte [ebp - 0x2859], al
movzx edx, byte [ebp - 0x2859]
test edx, edx
je 0x402d40
mov eax, dword [ebp - 0x14]
push eax
push 1
push 0x28
lea ecx, [ebp - 0x2854]
push ecx
call fcn.0041606e
add esp, 0x10
mov edx, dword [ebp - 0x2848]
add edx, dword [ebp - 0x2844]
mov dword [ebp - 0x282c], edx
cmp dword [ebp - 0x2840], 0
je 0x402d10
mov eax, dword [ebp - 0x2840]
add eax, dword [ebp - 0x2844]
mov dword [ebp - 0x2858], eax
jmp 0x402d22
mov ecx, dword [ebp - 0x2848]
add ecx, dword [ebp - 0x2844]
mov dword [ebp - 0x2858], ecx
mov edx, dword [ebp - 0x2858]
sub edx, 0x20
mov dword [ebp - 0x2858], edx
mov eax, dword [ebp - 0x282c]
sub eax, 0x20
mov dword [ebp - 0x282c], eax
mov ecx, dword [ebp - 0x2858]
push ecx
push str.dataOffset___08x
call fcn.00401000
add esp, 8
mov edx, dword [ebp - 0x282c]
push edx
push str.dataVA___08x
call fcn.00401000
add esp, 8
cmp dword [ebp - 0x2858], 0
je 0x403011
push 0x20
push 0
lea eax, [ebp - 0x289c]
push eax
call fcn.00413ad0
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x2858]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00415d49
add esp, 0xc
mov dword [ebp - 0x287c], 0
mov eax, dword [ebp - 0x14]
push eax
push 1
push 4
lea ecx, [ebp - 0x287c]
push ecx
call fcn.0041606e
add esp, 0x10
push 0x18
push 0
lea edx, [ebp - 0x2878]
push edx
call fcn.00413ad0
add esp, 0xc
push 1
push 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.00415d49
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
push 1
push 0x18
lea edx, [ebp - 0x2878]
push edx
call fcn.0041606e
add esp, 0x10
push 0x5c
lea eax, [ebp - 0x2878]
push eax
call fcn.004044b0
add esp, 8
mov dword [ebp - 0x2860], eax
cmp dword [ebp - 0x2860], 0
je 0x402e29
mov ecx, dword [ebp - 0x2860]
add ecx, 1
mov dword [ebp - 0x58b0], ecx
jmp 0x402e35
lea edx, [ebp - 0x2878]
mov dword [ebp - 0x58b0], edx
mov eax, dword [ebp - 0x58b0]
mov dword [ebp - 0x2860], eax
mov ecx, dword [ebp - 0xc]
mov byte [ebp + ecx - 4], 0
cmp dword [ebp - 0x287c], 0
je 0x402e90
cmp dword [ebp - 0xc], 0
jne 0x402e64
mov dword [ebp - 0x58b4], 0x42bdac
jmp 0x402e6e
mov dword [ebp - 0x58b4], 0x42bdb4
mov edx, dword [ebp - 0x58b4]
push edx
mov eax, dword [ebp - 0x2860]
push eax
call fcn.00416370
add esp, 8
test eax, eax
jne 0x402e90
mov ecx, dword [ebp - 0xc]
mov byte [ebp + ecx - 4], 1
mov edx, dword [ebp - 0xc]
movzx eax, byte [ebp + edx - 4]
test eax, eax
je 0x402fdf
push 0x1000
push 0
lea ecx, [ebp - 0x38a0]
push ecx
call fcn.00413ad0
add esp, 0xc
mov edx, dword [ebp - 0x2860]
lea eax, [ebp - 0x2878]
sub edx, eax
sub edx, 1
jns 0x402ed5
mov dword [ebp - 0x58b8], 0
jmp 0x402eec
mov ecx, dword [ebp - 0x2860]
lea edx, [ebp - 0x2878]
sub ecx, edx
sub ecx, 1
mov dword [ebp - 0x58b8], ecx
mov eax, dword [ebp - 0x58b8]
push eax
lea ecx, [ebp - 0x2878]
push ecx
lea edx, [ebp - 0x38a0]
push edx
call fcn.00416240
add esp, 0xc
push 0x4345e8
lea eax, [ebp - 0x38a0]
push eax
call fcn.00416370
add esp, 8
test eax, eax
jne 0x402f56
push str.Kitserver_ATTACHED_to_this_exe.
push 0
push 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov edx, dword [0x43b5ec]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov eax, dword [0x43b5e8]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x402fdd
push 0x2000
push 0
lea ecx, [ebp - 0x58a0]
push ecx
call fcn.00413ad0
add esp, 0xc
lea edx, [ebp - 0x38a0]
push edx
call fcn.004044d0
add esp, 4
mov dword [ebp - 0x58a4], eax
mov eax, dword [ebp - 0x58a4]
push eax
push str.WARN:_Kitserver_from_folder___s__ATTACHED_to_this_exe.
lea ecx, [ebp - 0x58a0]
push ecx
call fcn.00404470
add esp, 0xc
mov edx, dword [ebp - 0x58a4]
push edx
call fcn.00404570
add esp, 4
lea eax, [ebp - 0x58a0]
push eax
push 0
push 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov edx, dword [0x43b5ec]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov eax, dword [0x43b5e8]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40300f
push str.Kitserver_not_attached.
push 0
push 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov edx, dword [0x43b5ec]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov eax, dword [0x43b5e8]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x403024
push str.Information_unavailable
push 0
push 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x14]
push edx
call fcn.00413fe2
add esp, 4
jmp 0x403045
push str._ERROR:_Cant_open_file._
push 0
push 0xc
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402a5e
movzx ecx, byte [ebp - 8]
test ecx, ecx
jne 0x40305a
movzx edx, byte [ebp - 7]
test edx, edx
je 0x403098
movzx eax, byte [ebp - 4]
test eax, eax
jne 0x40306a
movzx ecx, byte [ebp - 3]
test ecx, ecx
je 0x403079
push 1
mov edx, dword [0x43b5e8]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
movzx eax, byte [ebp - 4]
test eax, eax
je 0x403089
movzx ecx, byte [ebp - 3]
test ecx, ecx
jne 0x403098
push 1
mov edx, dword [0x43b5ec]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00413f30
mov esp, ebp
pop ebp
ret