Function at 0x4018d0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Delete file
Get file size
Link many functions at runtime
Terminate process

Disassembly:
sub esp, 0x80c
lea eax, [esp + 0x40c]
push ebx
push esi
push edi
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4020d5]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
test eax, eax
je 0x401933
push eax
lea ecx, [esp + 0x1c]
push 0x40319c
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401933
push str.The_application_has_already_run.
jmp 0x401a78
mov eax, dword [0x4020c4]
test eax, eax
je 0x401982
push 0
push 0
push 3
push 0
push 3
lea ecx, [esp + 0x42c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x4020c4], eax
jbe 0x40197b
lea edx, [esp + 0x18]
push str.The_file_is_corrupted._It_was_downloaded_with_errors_or_otherwise_damaged._nPlease_download_it_again_and_make_sure_that_you_do_not_have_viruses.
push edx
jmp 0x401a7d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [0x4020a8]
mov ecx, dword [0x4020cd]
mov esi, eax
mov eax, dword [esi + ebx]
add esi, ebx
mov ecx, dword [ecx + esi]
cmp eax, ecx
ja 0x4019a6
mov eax, ecx
add eax, 0x400
push eax
call fcn.00401c00
mov ebx, eax
lea edx, [esp + 0x218]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push esi
call fcn.004016a0
test eax, eax
je 0x401a83
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4019ff
lea edx, [esp + 0x218]
lea eax, [esp + 0x18]
push edx
push str.Cannot_load__s.
push eax
call edi
add esp, 0xc
jmp 0x401a83
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push str.gentee_init
push esi
call edi
push str.gentee_deinit
push esi
mov ebp, eax
call edi
push str.gentee_load
push esi
mov dword [esp + 0x20], eax
call edi
push str.gentee_set
push esi
mov dword [esp + 0x18], eax
call edi
push str.gentee_call
push esi
mov dword [esp + 0x1c], eax
call edi
mov edx, dword [0x4020c8]
xor ecx, ecx
mov cx, word [0x4020cb]
and edx, 0xff
or ecx, edx
mov dword [0x403550], eax
or ecx, 2
push ecx
call ebp
push 0x401890
push 4
call dword [esp + 0x1c]
mov eax, dword [ebx]
pop ebp
cmp eax, 0x4547
je 0x401ac4
push str.The_executable_file_does_not_have_a_bytecode_
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x418]
lea edx, [esp + 0x618]
push ecx
push str.ERROR:
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x618]
push 0x10
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 5
push ebx
call dword [esp + 0x14]
push ebx
mov edi, eax
call fcn.00401c20
call dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call ebx
push esi
call ebx
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]