Function at 0x403090
Capabilities:
Create thread
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x610
mov eax, dword [0x478bf4]
xor eax, esp
mov dword [esp + 0x60c], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x150]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x288]
push eax
call fcn.00409df0
add esp, 0xc
lea eax, [esp + 0x3b0]
push eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x100
lea eax, [esp + 0x48]
mov dword [esp + 0x34], 0x11c
push 0
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.00439330
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [esp + 0x146], ax
mov dword [esp + 0x148], 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 + 0x3c]
mov dword [esp + 0x40], 6
xor ecx, ecx
mov dword [esp + 0x44], 2
push eax
mov word [esp + 0x154], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x4031a8
push 0x30
lea eax, [esp + 0x284]
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 + 0x60c]
xor ecx, esp
call fcn.004379e8
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 8]
push eax
push 0x8002
push edi
call dword [sym.imp.USER32.dll_GetClassInfoA]
push str.rdpicon
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], str.RdpLoaderClass
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4033b7
cmp dword [0x4ef7c0], 0
jne 0x403229
xorps xmm0, xmm0
mov dword [0x4ef7e0], 0
push str.GSSL.cs
push 0x4ef7c4
movups xmmword [0x4ef7c0], xmm0
movups xmmword [0x4ef7d0], xmm0
call fcn.004093a0
add esp, 8
mov dword [0x4ef7c0], 1
push 0x607
push str.D:MyProjectsProPilotSettings.c
push 0
push 0x4ef7c4
call fcn.004082d0
push 0x10
call fcn.0043d27d
mov esi, eax
add esp, 0x14
test esi, esi
je 0x403255
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov eax, dword [0x4ef7dc]
xor ecx, ecx
inc eax
mov edx, 4
mov dword [0x4ef7dc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x4ef7e0]
call fcn.0043be56
mov ecx, dword [0x4ef7dc]
push 0x24
push str.D:MyProjectsProPilotTestLoaderMain.c
push fcn.0043be56
push 0
push 0x460d40
mov dword [0x4ef7e0], eax
push esi
mov dword [eax + ecx*4 - 4], esi
call fcn.00406150
lea ecx, [esi + 0xc]
mov dword [ecx], 0x479620
call fcn.004010a0
push 0x4ef7c4
call fcn.00409420
add esp, 0x24
lea eax, [esp + 0x3b0]
push str._sRdpZapper__.reg
push eax
push 0xf2
push str.D:MyProjectsProPilotTestLoaderMain.c
push str._sRdpZapper__.reg
lea eax, [esp + 0x4f4]
push 0x12c
push eax
call fcn.0040ae30
add esp, 0x1c
lea ecx, [esp + 0x4e0]
call fcn.004028b0
mov eax, dword [0x4eef4c]
test eax, eax
je 0x4033a2
cmp dword [eax + 4], 0
je 0x4033a2
push str.Binary
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x403379
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x4eef50], eax
test eax, eax
je 0x403379
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403379
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x4eef40], eax
test eax, eax
je 0x403379
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
nop
push 0
push 0
push esi
push 0x402f90
push 0
push 0
call edi
inc esi
cmp esi, 0x100
jl 0x403360
cmp dword [0x4eef3c], 0x100
jge 0x4033b7
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
push 0x64
call esi
cmp dword [0x4eef3c], 0x100
jl 0x403390
jmp 0x4033b7
push 0
push 0x402ea0
push 0
push str.RdpZapperDialog
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [esp + 0x614]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.004379e8
mov esp, ebp
pop ebp
ret 0x10