Function at 0x403330
Capabilities:
Create thread
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28c
mov eax, dword [0x425004]
xor eax, esp
mov dword [esp + 0x288], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x844
mov dword [esp + 0x14], eax
mov dword [0x42ebb4], eax
call fcn.0040e3c5
add esp, 4
mov dword [0x426620], eax
test eax, eax
je 0x4037d9
push 0x844
push 0
push eax
call fcn.00406650
add esp, 0xc
test eax, eax
je 0x4037d9
push 0x104
push dword [0x426620]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [0x426620]
push 1
lea ecx, [edx + 0x12c]
call fcn.00404480
mov eax, dword [0x426620]
add esp, 4
add eax, 0x258
push eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x100
lea eax, [esp + 0x58]
mov dword [esp + 0x44], 0x11c
push 0
push eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.00406650
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [esp + 0x156], ax
mov dword [esp + 0x158], 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 + 0x4c]
mov dword [esp + 0x50], 6
xor ecx, ecx
mov dword [esp + 0x54], 2
push eax
mov word [esp + 0x164], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x403471
mov eax, dword [0x426620]
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]
jmp 0x4037d9
lea eax, [esp + 0x14]
push eax
push 0x8002
push dword [0x42ebb4]
call dword [sym.imp.USER32.dll_GetClassInfoA]
mov eax, dword [0x42ebb4]
push str.rdpicon
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], 0x4234d4
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x4034cb
push dword [0x426620]
call fcn.004087f6
add esp, 4
jmp 0x4037d9
cmp dword [0x426634], 0
jne 0x40352f
xorps xmm0, xmm0
mov dword [0x426654], 0
push 0x426638
movups xmmword [0x426634], xmm0
movups xmmword [0x426644], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10
call fcn.0040e3c5
mov esi, eax
add esp, 4
test esi, esi
je 0x403510
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push str.GSSL.cs
mov dword [0x426638], esi
call fcn.0040f35b
mov dword [esi], eax
add esp, 4
mov dword [0x426634], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
xor esi, esi
cmp dword [0x426638], 0xffffffff
push 0x426638
cmovne esi, dword [0x426638]
mov dword [esp + 0x40], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x40356f
push 1
call ebx
push 0x426638
call edi
test eax, eax
je 0x403560
test esi, esi
je 0x403588
mov eax, dword [esp + 0x3c]
mov dword [esi + 0xc], eax
mov dword [esi + 4], str.D:MyProjectsProPilotSettings.c
mov dword [esi + 8], 0x607
push 0x10
call fcn.0040e3c5
mov edi, eax
add esp, 4
test edi, edi
je 0x40359e
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov eax, dword [0x426650]
xor ecx, ecx
inc eax
mov edx, 4
mov dword [0x426650], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x426654]
call fcn.00407280
mov ecx, dword [0x426650]
add esp, 8
mov dword [0x426654], eax
mov dword [eax + ecx*4 - 4], edi
test edi, edi
je 0x40362f
mov esi, 4
mov eax, 0x42348b
cmp byte [eax], 0
jne 0x4035f3
dec eax
dec esi
cmp eax, 0x423488
ja 0x4035e5
push 0x2c
push str.D:MyProjectsProPilotTestLoaderMain2.c
lea eax, [esi + 1]
push eax
push dword [edi]
call fcn.00407280
add esp, 0x10
test eax, eax
je 0x403629
mov dword [edi], eax
test esi, esi
je 0x403623
push esi
push 0x423488
push eax
call fcn.00406d00
mov eax, dword [edi]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x40362f
mov dword [edi], 0
lea ecx, [edi + 0xc]
mov dword [ecx], str._0x
call fcn.00401050
push 0x426638
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x426620]
push str._sRdpZapper__.reg
add eax, 0x258
push eax
push 0x150
push str.D:MyProjectsProPilotTestLoaderMain2.c
push str._sRdpZapper__.reg
lea eax, [esp + 0x174]
push 0x12c
push eax
call fcn.00404a90
add esp, 0x1c
lea ecx, [esp + 0x160]
call fcn.00402c30
mov eax, dword [0x426624]
test eax, eax
je 0x4037c1
cmp dword [eax + 4], 0
je 0x4037c1
mov edi, dword [0x426620]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4036e3
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4037d9
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 + 0x40]
push eax
push 4
push 0x426628
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4037b4
cmp dword [esp + 0x3c], 4
jne 0x4037b4
push dword [0x426628]
call fcn.0040e3c5
add esp, 4
mov dword [0x426614], eax
test eax, eax
je 0x4037b4
sub edi, dword [0x426628]
push 0
push 0
sub edi, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x40]
push eax
push dword [0x426628]
push dword [0x426614]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4037b4
mov eax, dword [0x426628]
cmp eax, dword [esp + 0x3c]
jne 0x4037b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x403240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x426610], 0x100
jge 0x4037d9
push 0x64
call ebx
cmp dword [0x426610], 0x100
jl 0x4037a2
jmp 0x4037d9
test esi, esi
je 0x4037d9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4037d9
push 0
push 0x403120
push 0
push str.PinDialog
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [esp + 0x294]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004054b6
mov esp, ebp
pop ebp
ret 0x10