Function at 0x4021e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3084
call fcn.00403e50
mov eax, dword [0x425034]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [0x4258e4]
test eax, eax
je 0x402207
jmp 0x4026aa
push 0
mov ecx, dword [0x42a900]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov edx, dword [0x42a904]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x1000
push 0
lea eax, [ebp - 0x103c]
push eax
call fcn.00405f10
add esp, 0xc
push 0x41d770
lea ecx, [ebp - 0x103c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x103c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x103c]
mov dword [ebp - 0x3080], eax
push 0
push 0
push 0x147
mov ecx, dword [0x42a8f8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x3084], eax
mov edx, dword [ebp - 0x3080]
push edx
mov eax, dword [ebp - 0x3084]
push eax
push 0x148
mov ecx, dword [0x42a8f8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x103c]
push edx
call fcn.00402fe0
add esp, 4
cmp eax, 0xffffffff
jne 0x4022ef
push str.Unknown_EXE_file__this_is_not_a_valid_executable_of_Pro_Evolution_Soccer_6_
push 0
push 0xc
mov eax, dword [0x42a8fc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, dword [0x42a900]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov edx, dword [0x42a904]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4026aa
push 0x41d774
lea eax, [ebp - 0x103c]
push eax
call fcn.00407a16
add esp, 8
mov dword [ebp - 0x306c], eax
cmp dword [ebp - 0x306c], 0
je 0x402695
push 0x28
push 0
lea ecx, [ebp - 0x3064]
push ecx
call fcn.00405f10
add esp, 0xc
mov dword [ebp - 0x3070], 0
mov dword [ebp - 0x3074], 0
push 0x41d7c8
mov edx, dword [ebp - 0x306c]
push edx
call fcn.00403790
add esp, 8
movzx eax, al
test eax, eax
je 0x4023d1
mov ecx, dword [ebp - 0x306c]
push ecx
push 1
push 0x28
lea edx, [ebp - 0x3064]
push edx
call fcn.00407c13
add esp, 0x10
mov eax, dword [ebp - 0x3058]
add eax, dword [ebp - 0x3054]
mov dword [ebp - 0x3074], eax
cmp dword [ebp - 0x3050], 0
je 0x4023a1
mov ecx, dword [ebp - 0x3050]
add ecx, dword [ebp - 0x3054]
mov dword [ebp - 0x3070], ecx
jmp 0x4023b3
mov edx, dword [ebp - 0x3058]
add edx, dword [ebp - 0x3054]
mov dword [ebp - 0x3070], edx
mov eax, dword [ebp - 0x3070]
sub eax, 0x20
mov dword [ebp - 0x3070], eax
mov ecx, dword [ebp - 0x3074]
sub ecx, 0x20
mov dword [ebp - 0x3074], ecx
mov edx, dword [ebp - 0x3070]
push edx
push str.dataOffset___08x
call fcn.00401290
add esp, 8
mov eax, dword [ebp - 0x3074]
push eax
push str.dataVA___08x
call fcn.00401290
add esp, 8
cmp dword [ebp - 0x3070], 0
je 0x40266e
push 0x20
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00405f10
add esp, 0xc
push 0
mov edx, dword [ebp - 0x3070]
push edx
mov eax, dword [ebp - 0x306c]
push eax
call fcn.0040800a
add esp, 0xc
mov dword [ebp - 0x307c], 0
mov ecx, dword [ebp - 0x306c]
push ecx
push 1
push 4
lea edx, [ebp - 0x307c]
push edx
call fcn.00407c13
add esp, 0x10
push 0x18
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00405f10
add esp, 0xc
push 1
push 4
mov ecx, dword [ebp - 0x306c]
push ecx
call fcn.0040800a
add esp, 0xc
mov edx, dword [ebp - 0x306c]
push edx
push 1
push 0x18
lea eax, [ebp - 0x1c]
push eax
call fcn.00407c13
add esp, 0x10
push 0x5c
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402de0
add esp, 8
add eax, 1
mov dword [ebp - 0x3078], eax
mov byte [ebp - 0x3065], 0
mov byte [ebp - 0x3066], 0
cmp dword [ebp - 0x307c], 0
je 0x4024ff
cmp dword [ebp - 0x3078], 1
je 0x4024ff
push 0x41d7f4
mov edx, dword [ebp - 0x3078]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4024e2
mov byte [ebp - 0x3065], 1
jmp 0x4024ff
push str.kserv
mov eax, dword [ebp - 0x3078]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4024ff
mov byte [ebp - 0x3066], 1
movzx ecx, byte [ebp - 0x3065]
test ecx, ecx
je 0x4025f9
push 0x1000
push 0
lea edx, [ebp - 0x203c]
push edx
call fcn.00405f10
add esp, 0xc
mov eax, dword [ebp - 0x3078]
lea ecx, [ebp - 0x1c]
sub eax, ecx
sub eax, 1
push eax
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x203c]
push eax
call fcn.004075c0
add esp, 0xc
push 0x4268e8
lea ecx, [ebp - 0x203c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402591
push str.KitServer_INSTALLED_correctly_for_this_folder.
push 0
push 0xc
mov edx, dword [0x42a8fc]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov eax, dword [0x42a900]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov ecx, dword [0x42a904]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4025f7
push 0x1000
push 0
lea edx, [ebp - 0x303c]
push edx
call fcn.00405f10
add esp, 0xc
lea eax, [ebp - 0x203c]
push eax
push str.KitServer_INSTALLED__but_for_folder___s_.
lea ecx, [ebp - 0x303c]
push ecx
call fcn.00402ee0
add esp, 0xc
lea edx, [ebp - 0x303c]
push edx
push 0
push 0xc
mov eax, dword [0x42a8fc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, dword [0x42a900]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov edx, dword [0x42a904]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40266c
movzx eax, byte [ebp - 0x3066]
test eax, eax
je 0x402639
push str.KitServer_INSTALLED_for_an_OLD_version._Please_remove_and_install_again_
push 0
push 0xc
mov ecx, dword [0x42a8fc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov edx, dword [0x42a900]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov eax, dword [0x42a904]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40266c
push str.KitServer_not_installed.
push 0
push 0xc
mov ecx, dword [0x42a8fc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov edx, dword [0x42a900]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov eax, dword [0x42a904]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x402684
push 0x41d8c8
push 0
push 0xc
mov ecx, dword [0x42a8fc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x306c]
push edx
call fcn.0040775b
add esp, 4
jmp 0x4026aa
push str._ERROR:_Cant_open_file._
push 0
push 0xc
mov eax, dword [0x42a8fc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e3e
mov esp, ebp
pop ebp
ret