Function at 0x4021e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3084
call fcn.00403d50
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [0x42895c]
test eax, eax
je 0x402207
jmp 0x4026aa
push 0
mov ecx, dword [0x42d978]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov edx, dword [0x42d97c]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x1000
push 0
lea eax, [ebp - 0x103c]
push eax
call fcn.004064d0
add esp, 0xc
push 0x420770
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 [0x42d970]
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 [0x42d970]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x103c]
push edx
call fcn.00402f50
add esp, 4
cmp eax, 0xffffffff
jne 0x4022ef
push str.Unknown_EXE_file__this_is_not_a_valid_executable_of_Pro_Evolution_Soccer_5_
push 0
push 0xc
mov eax, dword [0x42d974]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, dword [0x42d978]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov edx, dword [0x42d97c]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4026aa
push 0x420774
lea eax, [ebp - 0x103c]
push eax
call fcn.00408dd8
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.004064d0
add esp, 0xc
mov dword [ebp - 0x3070], 0
mov dword [ebp - 0x3074], 0
push 0x4207c8
mov edx, dword [ebp - 0x306c]
push edx
call fcn.00403690
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.00408fd5
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.004064d0
add esp, 0xc
push 0
mov edx, dword [ebp - 0x3070]
push edx
mov eax, dword [ebp - 0x306c]
push eax
call fcn.004093eb
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.00408fd5
add esp, 0x10
push 0x18
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.004064d0
add esp, 0xc
push 1
push 4
mov ecx, dword [ebp - 0x306c]
push ecx
call fcn.004093eb
add esp, 0xc
mov edx, dword [ebp - 0x306c]
push edx
push 1
push 0x18
lea eax, [ebp - 0x1c]
push eax
call fcn.00408fd5
add esp, 0x10
push 0x5c
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402d50
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 0x4207f4
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.004064d0
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.00408840
add esp, 0xc
push 0x429960
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 [0x42d974]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov eax, dword [0x42d978]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov ecx, dword [0x42d97c]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4025f7
push 0x1000
push 0
lea edx, [ebp - 0x303c]
push edx
call fcn.004064d0
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.00402e50
add esp, 0xc
lea edx, [ebp - 0x303c]
push edx
push 0
push 0xc
mov eax, dword [0x42d974]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, dword [0x42d978]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov edx, dword [0x42d97c]
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 [0x42d974]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov edx, dword [0x42d978]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov eax, dword [0x42d97c]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40266c
push str.KitServer_not_installed.
push 0
push 0xc
mov ecx, dword [0x42d974]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov edx, dword [0x42d978]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov eax, dword [0x42d97c]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x402684
push 0x4208c8
push 0
push 0xc
mov ecx, dword [0x42d974]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x306c]
push edx
call fcn.00408b70
add esp, 4
jmp 0x4026aa
push str._ERROR:_Cant_open_file._
push 0
push 0xc
mov eax, dword [0x42d974]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d3e
mov esp, ebp
pop ebp
ret