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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28c
mov eax, dword [0x42900c]
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 [0x432c24], eax
call fcn.00412018
add esp, 4
mov dword [0x42a690], eax
test eax, eax
je 0x4037ec
push 0x844
push 0
push eax
call fcn.00408450
add esp, 0xc
test eax, eax
je 0x4037ec
push 0x104
push dword [0x42a690]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [0x42a690]
push 1
lea ecx, [edx + 0x12c]
call fcn.00404490
mov edx, dword [0x42a690]
lea ecx, [edx + 0x258]
call fcn.00404580
add esp, 4
mov dword [esp + 0x40], 0x11c
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
push 0x100
push 0
push eax
call fcn.00408450
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 0x40346c
mov eax, dword [0x42a690]
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 0x4037ec
lea eax, [esp + 0x14]
push eax
push 0x8002
push dword [0x432c24]
call dword [sym.imp.USER32.dll_GetClassInfoA]
mov eax, dword [0x432c24]
push str.rdpicon
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], 0x427384
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 0x4034c6
push dword [0x42a690]
call fcn.0040c203
add esp, 4
jmp 0x4037ec
cmp dword [0x42a6a4], 0
jne 0x40352a
xorps xmm0, xmm0
mov dword [0x42a6c4], 0
push 0x42a6a8
movups xmmword [0x42a6a4], xmm0
movups xmmword [0x42a6b4], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10
call fcn.00412018
mov esi, eax
add esp, 4
test esi, esi
je 0x40350b
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push str.GSSL.cs
mov dword [0x42a6a8], esi
call fcn.00413033
mov dword [esi], eax
add esp, 4
mov dword [0x42a6a4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
xor esi, esi
cmp dword [0x42a6a8], 0xffffffff
push 0x42a6a8
cmovne esi, dword [0x42a6a8]
mov dword [esp + 0x40], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x40356f
nop dword [eax + eax]
push 1
call ebx
push 0x42a6a8
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.00412018
mov edi, eax
add esp, 4
test edi, edi
je 0x40359e
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov eax, dword [0x42a6c0]
xor ecx, ecx
inc eax
mov edx, 4
mov dword [0x42a6c0], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x42a6c4]
call fcn.0040a1c2
mov ecx, dword [0x42a6c0]
add esp, 8
mov dword [0x42a6c4], eax
mov dword [eax + ecx*4 - 4], edi
test edi, edi
je 0x40362f
mov esi, 4
mov eax, 0x42733b
cmp byte [eax], 0
jne 0x4035f3
dec eax
dec esi
cmp eax, 0x427338
ja 0x4035e5
push 0x2c
push str.D:MyProjectsProPilotTestLoaderMain2.c
lea eax, [esi + 1]
push eax
push dword [edi]
call fcn.0040a1c2
add esp, 0x10
test eax, eax
je 0x403629
mov dword [edi], eax
test esi, esi
je 0x403623
push esi
push 0x427338
push eax
call fcn.00407ed0
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 0x42a6a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x42a690]
push str._sRdpZapper__.reg
add eax, 0x258
push eax
push 0x136
push str.D:MyProjectsProPilotTestLoaderMain2.c
push str._sRdpZapper__.reg
lea eax, [esp + 0x174]
push 0x12c
push eax
call fcn.00404aa0
add esp, 0x1c
lea ecx, [esp + 0x160]
call fcn.00402c30
mov eax, dword [0x42a694]
test eax, eax
je 0x4037d4
cmp dword [eax + 4], 0
je 0x4037d4
mov edi, dword [0x42a690]
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 0x4037ec
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 0x42a698
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4037c7
cmp dword [esp + 0x3c], 4
jne 0x4037c7
push dword [0x42a698]
call fcn.00412018
add esp, 4
mov dword [0x42a684], eax
test eax, eax
je 0x4037c7
sub edi, dword [0x42a698]
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 [0x42a698]
push dword [0x42a684]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4037c7
mov eax, dword [0x42a698]
cmp eax, dword [esp + 0x3c]
jne 0x4037c7
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 0x403240
push 0
push 0
call edi
inc esi
cmp esi, 0x100
jl 0x403790
cmp dword [0x42a680], 0x100
jge 0x4037ec
push 0x64
call ebx
cmp dword [0x42a680], 0x100
jl 0x4037b5
jmp 0x4037ec
test esi, esi
je 0x4037ec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4037ec
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.00406ff8
mov esp, ebp
pop ebp
ret 0x10