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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
mov eax, dword [0x40b010]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x844
mov dword [0x40dda8], edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x40b504], eax
test eax, eax
je 0x401a10
push 0x844
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test eax, eax
je 0x401a10
call fcn.00405530
push 0x104
push dword [0x40b504]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [0x40b504]
push 1
lea ecx, [edx + 0x12c]
call fcn.004041e0
mov edx, dword [0x40b504]
lea ecx, [edx + 0x258]
call fcn.004042d0
add esp, 4
mov dword [esp + 0x38], 0x11c
lea eax, [esp + 0x4c]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
push pe_nt_image_headers32
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 [0x40b504]
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 + 0x284]
xor ecx, esp
call fcn.004077db
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0xc]
push eax
push 0x8002
push dword [0x40dda8]
call dword [sym.imp.USER32.dll_GetClassInfoA]
mov eax, dword [0x40dda8]
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 [0x40b504]
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 + 0x284]
xor ecx, esp
call fcn.004077db
mov esp, ebp
pop ebp
ret 0x10
call fcn.00403290
mov eax, dword [0x40b504]
push str._sRdpZapper__.reg
add eax, 0x258
push eax
push 0x106
push str.D:MyProjectsProPilotTestLoaderMain2.c
push str._sRdpZapper__.reg
lea eax, [esp + 0x16c]
push 0x12c
push eax
call fcn.00404780
add esp, 0x1c
lea ecx, [esp + 0x158]
call fcn.004010b0
mov eax, dword [0x40b508]
test eax, eax
je 0x4019fb
cmp dword [eax + 4], 0
je 0x4019fb
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push dword [0x40b504]
call dword [0x40dda4]
mov esi, eax
cmp esi, 0xffffffff
je 0x401a10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0
push 0
lea ecx, [edi - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x38]
push eax
push 4
push 0x40b50c
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019d8
cmp dword [esp + 0x34], 4
jne 0x4019d8
push dword [0x40b50c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x40b4f8], eax
test eax, eax
je 0x4019d8
sub edi, dword [0x40b50c]
push 0
push 0
sub edi, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x38]
push eax
push dword [0x40b50c]
push dword [0x40b4f8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019d8
mov eax, dword [0x40b50c]
cmp eax, dword [esp + 0x34]
jne 0x4019d8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
nop dword [eax]
push 0
push 0
push esi
push 0x4015c0
push 0
push 0
call edi
inc esi
cmp esi, 0x100
jl 0x401980
cmp dword [0x40b4f4], 0x100
jge 0x401a10
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
push 0x64
call esi
cmp dword [0x40b4f4], 0x100
jl 0x4019b0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.004077db
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x401a10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.004077db
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 + 0x28c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004077db
mov esp, ebp
pop ebp
ret 0x10