Function at 0x401690
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x298
mov eax, dword [0x40c010]
xor eax, esp
mov dword [esp + 0x294], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x844
mov dword [0x40edac], edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x40c524], eax
test eax, eax
je 0x4019f0
push 0x844
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test eax, eax
je 0x4019f0
call fcn.00405510
push 0x104
push dword [0x40c524]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [0x40c524]
push 1
lea ecx, [edx + 0x12c]
call fcn.004041c0
mov edx, dword [0x40c524]
lea ecx, [edx + 0x258]
call fcn.004042b0
add esp, 4
mov dword [esp + 0x38], 0x11c
lea eax, [esp + 0x4c]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [esp + 0x14e], ax
mov dword [esp + 0x150], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [esp + 0x44]
mov dword [esp + 0x48], 6
xor ecx, ecx
mov dword [esp + 0x4c], 2
push eax
mov word [esp + 0x15c], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x4017e1
mov eax, dword [0x40c524]
push 0x30
add eax, 0x12c
push eax
push str.This_program_requires_Windows_8_or_higher
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004077de
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0xc]
push eax
push 0x8002
push dword [0x40edac]
call dword [sym.imp.USER32.dll_GetClassInfoA]
mov eax, dword [0x40edac]
push str.rdpicon
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], str.EncoderClass
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x40184f
push dword [0x40c524]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004077de
mov esp, ebp
pop ebp
ret 0x10
call fcn.00403270
mov eax, dword [0x40c524]
push str._sRdpZapper__.reg
add eax, 0x258
push eax
push 0x106
push str.D:MyProjectsProPilotTestLoaderMain2.c
push str._sRdpZapper__.reg
lea eax, [esp + 0x17c]
push 0x12c
push eax
call fcn.00404760
add esp, 0x1c
lea ecx, [esp + 0x168]
call fcn.004010b0
mov eax, dword [0x40c528]
test eax, eax
je 0x4019db
cmp dword [eax + 4], 0
je 0x4019db
mov ecx, dword [0x40c524]
push str._s_s.bin
lea eax, [ecx + 0x12c]
push eax
lea eax, [ecx + 0x258]
push eax
push 0x11a
push str.D:MyProjectsProPilotTestLoaderMain2.c
push str._s_s.bin
lea eax, [esp + 0x50]
push 0x12c
push eax
call fcn.00404760
add esp, 0x20
lea eax, [esp + 0x38]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [0x40eda8]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019f0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [0x40c52c], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x40c518], eax
test eax, eax
je 0x4019b8
push 0
lea ecx, [esp + 0x38]
push ecx
push dword [0x40c52c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019b8
mov eax, dword [0x40c52c]
cmp eax, dword [esp + 0x34]
jne 0x4019b8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
push 0
push 0
push esi
push 0x4015c0
push 0
push 0
call edi
inc esi
cmp esi, 0x100
jl 0x401962
cmp dword [0x40c514], 0x100
jge 0x4019f0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0x64
call esi
cmp dword [0x40c514], 0x100
jl 0x401990
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004077de
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x4019f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004077de
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x4014a0
push 0
push str.PinDialog
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [esp + 0x29c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004077de
mov esp, ebp
pop ebp
ret 0x10