Function at 0x4030c0
Capabilities:
Create thread
Get common file path
Get file size
Inspect load icon resource
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x479bf0]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x844
mov dword [0x4f02fc], edi
call fcn.00442d35
add esp, 4
mov dword [0x4eff50], eax
test eax, eax
je 0x4036bb
push 0x844
push 0
push eax
call fcn.00439a50
add esp, 0xc
test eax, eax
je 0x4036bb
push 0x104
push dword [0x4eff50]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4eff50]
push 1
push eax
add eax, 0x12c
push eax
call fcn.0040a510
mov eax, dword [0x4eff50]
add esp, 0xc
add eax, 0x258
push eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x100
lea eax, [esp + 0x50]
mov dword [esp + 0x3c], 0x11c
push 0
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.00439a50
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 0x4031fe
mov eax, dword [0x4eff50]
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 0x4036bb
mov ecx, dword [0x4eff50]
lea eax, [ecx + 0x394]
push eax
push 0x12b
push str.SoftwareProps_sUsername
lea eax, [ecx + 0x12c]
push eax
push str.SoftwareProps_sUsername
push 0
push 0
call fcn.00408810
add esp, 0x14
push eax
push SysReAllocString
call fcn.00409760
mov ecx, dword [0x4eff50]
add esp, 0x10
lea eax, [ecx + 0x4c0]
push eax
push 0x12b
push str.SoftwareProps_sEmail
lea eax, [ecx + 0x12c]
push eax
push str.SoftwareProps_sEmail
push 0
push 0
call fcn.00408810
add esp, 0x14
push eax
push SysReAllocString
call fcn.00409760
mov ecx, dword [0x4eff50]
add esp, 0x10
lea eax, [ecx + 0x5ec]
push eax
push 0x12b
push str.SoftwareProps_sRegPath
lea eax, [ecx + 0x12c]
push eax
push str.SoftwareProps_sRegPath
push 0
push 0
call fcn.00408810
add esp, 0x14
push eax
push SysReAllocString
call fcn.00409760
mov ecx, dword [0x4eff50]
add esp, 0x10
lea eax, [ecx + 0x718]
push eax
push 0x12b
push str.SoftwareProps_sExecutable
lea eax, [ecx + 0x12c]
push eax
push str.SoftwareProps_sExecutable
push 0
push 0
call fcn.00408810
add esp, 0x14
push eax
push SysReAllocString
call fcn.00409760
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0x8002
push dword [0x4f02fc]
call dword [sym.imp.USER32.dll_GetClassInfoA]
mov eax, dword [0x4f02fc]
push str.rdpicon
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 0x461e1c
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 0x40334c
push dword [0x4eff50]
call fcn.0043d146
add esp, 4
jmp 0x4036bb
cmp dword [0x4eff5c], 0
jne 0x40338c
xorps xmm0, xmm0
mov dword [0x4eff7c], 0
push str.GSSL.cs
push 0x4eff60
movups xmmword [0x4eff5c], xmm0
movups xmmword [0x4eff6c], xmm0
call fcn.004096c0
add esp, 8
mov dword [0x4eff5c], 1
push 0x607
push str.D:MyProjectsProPilotSettings.c
push 0
push 0x4eff60
call fcn.004085f0
push 0x10
call fcn.00442d35
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4033b8
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov eax, dword [0x4eff78]
xor ecx, ecx
inc eax
mov edx, 4
mov dword [0x4eff78], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x4eff7c]
call fcn.0043bbd4
mov ecx, dword [0x4eff78]
push 0x2e
push str.D:MyProjectsProPilotTestLoaderMain2.c
push fcn.0043bbd4
push 0
push 0x461d60
mov dword [0x4eff7c], eax
push esi
mov dword [eax + ecx*4 - 4], esi
call fcn.00406470
lea ecx, [esi + 0xc]
mov dword [ecx], str._0x
call fcn.004010a0
push 0x4eff60
call fcn.00409740
mov eax, dword [0x4eff50]
add esp, 0x24
add eax, 0x258
push str._sRdpZapper__.reg
push eax
push 0x154
push str.D:MyProjectsProPilotTestLoaderMain2.c
push str._sRdpZapper__.reg
lea eax, [esp + 0x16c]
push 0x12c
push eax
call fcn.0040b550
add esp, 0x1c
lea ecx, [esp + 0x158]
call fcn.004028b0
mov eax, dword [0x4eff54]
test eax, eax
je 0x40357a
cmp dword [eax + 4], 0
je 0x40357a
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push dword [0x4eff50]
call fcn.00406f20
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
je 0x40358f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 4
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x34]
push 0
push eax
push 4
push 0x4eff58
push edi
call ebx
test eax, eax
je 0x403571
cmp dword [esp + 0x34], 4
jne 0x403571
push dword [0x4eff58]
call fcn.00442d35
add esp, 4
mov dword [0x4eff44], eax
test eax, eax
je 0x403571
mov eax, dword [0x4eff58]
push 1
push 0
neg eax
push eax
push edi
call esi
push 0
lea eax, [esp + 0x38]
push eax
push dword [0x4eff58]
push dword [0x4eff44]
push edi
call ebx
test eax, eax
je 0x403571
mov eax, dword [0x4eff58]
cmp eax, dword [esp + 0x34]
jne 0x403571
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
push 0
push 0
push esi
push 0x402fc0
push 0
push 0
call ebx
inc esi
cmp esi, 0x100
jl 0x403536
cmp dword [0x4eff40], 0x100
jge 0x403571
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
cmp dword [0x4eff40], 0x100
jl 0x403561
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40358f
push 0
push 0x402ea0
push 0
push str.PinDialog
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [0x4eff50]
lea eax, [ecx + 0x394]
push eax
push 0
push 1
push str.SoftwareProps_sUsername
lea eax, [ecx + 0x12c]
push eax
push str.SoftwareProps_sUsername
push 0
push 0
call fcn.00408810
add esp, 0x14
push eax
push SysReAllocString
call fcn.0040a160
mov ecx, dword [0x4eff50]
add esp, 0x14
lea eax, [ecx + 0x4c0]
push eax
push 0
push 1
push str.SoftwareProps_sEmail
lea eax, [ecx + 0x12c]
push eax
push str.SoftwareProps_sEmail
push 0
push 0
call fcn.00408810
add esp, 0x14
push eax
push SysReAllocString
call fcn.0040a160
mov ecx, dword [0x4eff50]
add esp, 0x14
lea eax, [ecx + 0x5ec]
push eax
push 0
push 1
push str.SoftwareProps_sRegPath
lea eax, [ecx + 0x12c]
push eax
push str.SoftwareProps_sRegPath
push 0
push 0
call fcn.00408810
add esp, 0x14
push eax
push SysReAllocString
call fcn.0040a160
mov ecx, dword [0x4eff50]
add esp, 0x14
lea eax, [ecx + 0x718]
push eax
push 0
push 1
push str.SoftwareProps_sExecutable
lea eax, [ecx + 0x12c]
push eax
push str.SoftwareProps_sExecutable
push 0
push 0
call fcn.00408810
add esp, 0x14
push eax
push SysReAllocString
call fcn.0040a160
mov ecx, dword [0x4eff50]
add esp, 0x14
lea eax, [ecx + 0x388]
push eax
push 0
push 4
push str.SoftwareProps_sFlags
lea eax, [ecx + 0x12c]
push eax
push str.SoftwareProps_sFlags
push 0
push 0
call fcn.00408810
add esp, 0x14
push eax
push SysReAllocString
call fcn.0040a160
add esp, 0x14
mov ecx, dword [esp + 0x28c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004380f8
mov esp, ebp
pop ebp
ret 0x10