Function at 0x410c00
Capabilities:
Check if file exists
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x447e34
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4571a0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4571a0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [esp + 0x278]
mov esi, dword [esp + 0x27c]
xor ebp, ebp
mov edi, edx
mov dword [esp + 0x1c], edi
cmp eax, ebp
jne 0x4111bb
cmp ecx, ebp
jne 0x4116ff
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
mov ebx, 7
xor edx, edx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push ebp
mov dword [esp + 0x38], eax
mov word [ecx + 4], dx
call fcn.00405510
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x2a8], ebp
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov dword [esp + 0x5c], esp
mov word [esi + 4], ax
push ebp
mov eax, 0x44c1c4
call fcn.00405600
sub esp, 0x1c
mov byte [esp + 0x2c4], 1
mov esi, esp
mov dword [esp + 0x74], esp
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push 0xe
mov eax, str.currentversion
mov word [esi + 4], cx
call fcn.00405600
sub esp, 0x1c
mov byte [esp + 0x2e0], 2
mov esi, esp
mov dword [esp + 0x88], esp
xor edx, edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebx
mov eax, str.version
mov word [esi + 4], dx
call fcn.00405600
lea edi, [esp + 0x1ac]
mov dword [esp + 0x2e0], 0xffffffff
call fcn.0041a270
add esp, 0x54
mov dword [esp + 0x28c], 3
mov ecx, esp
mov dword [esp + 0x34], esp
xor eax, eax
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push 0xffffffffffffffff
mov word [ecx + 4], ax
mov eax, dword [esp + 0x34]
push ebp
call fcn.00405510
sub esp, 0x1c
mov byte [esp + 0x2a8], 4
mov esi, esp
mov dword [esp + 0x58], esp
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x44c1c4
mov word [esi + 4], cx
call fcn.00405600
sub esp, 0x1c
mov byte [esp + 0x2c4], 5
mov dword [esp + 0x78], esp
mov esi, esp
xor edx, edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push 0xc
mov eax, str.upgraderange
mov word [esi + 4], dx
call fcn.00405600
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x2e0], 6
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov dword [esp + 0x98], esp
mov word [esi + 4], ax
push ebx
mov eax, str.version
call fcn.00405600
lea edi, [esp + 0x1e4]
mov byte [esp + 0x2e0], 3
call fcn.0041a270
add esp, 0x54
mov byte [esp + 0x28c], bl
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.0041a0c0
sub esp, 0x1c
mov byte [esp + 0x2a8], 8
mov esi, esp
mov dword [esp + 0x58], esp
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x44c1c4
mov word [esi + 4], cx
call fcn.00405600
sub esp, 0x1c
mov byte [esp + 0x2c4], 9
mov esi, esp
mov dword [esp + 0x78], esp
xor edx, edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push 0xe
mov eax, str.lastUpgradeVer
mov word [esi + 4], dx
call fcn.00405600
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x2e0], 0xa
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov dword [esp + 0x98], esp
mov word [esi + 4], ax
push ebx
mov eax, str.version
call fcn.00405600
lea edi, [esp + 0x1c8]
mov byte [esp + 0x2e0], bl
call fcn.0041a270
add esp, 0x70
mov edi, dword [esp + 0x1c]
add edi, 0xd98
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x144]
mov ecx, edi
mov byte [esp + 0x278], 0xb
call fcn.00405510
push 0x44cc30
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x7c]
push edx
call fcn.00419a00
add esp, 0xc
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x144]
mov byte [esp + 0x278], 0xc
call fcn.00405510
mov esi, 8
mov byte [esp + 0x270], 0xb
cmp dword [esp + 0x8c], esi
jb 0x410ef6
mov eax, dword [esp + 0x78]
push eax
call fcn.0042c65c
add esp, 4
mov eax, dword [esp + 0x140]
xor ecx, ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebp
mov word [esp + 0x78], cx
cmp dword [esp + 0x154], esi
jae 0x410f22
lea eax, [esp + 0x140]
push eax
call fcn.0041a750
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x410fbb
cmp dword [esp + 0x170], esi
jb 0x410f50
mov edx, dword [esp + 0x15c]
push edx
call fcn.0042c65c
add esp, 4
xor eax, eax
mov dword [esp + 0x170], ebx
mov dword [esp + 0x16c], ebp
mov word [esp + 0x15c], ax
cmp dword [esp + 0x18c], esi
jb 0x410f81
mov ecx, dword [esp + 0x178]
push ecx
call fcn.0042c65c
add esp, 4
xor edx, edx
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x188], ebp
mov word [esp + 0x178], dx
cmp dword [esp + 0x154], esi
jb 0x4116ff
mov eax, dword [esp + 0x140]
push eax
call fcn.0042c65c
add esp, 4
jmp 0x4116ff
push 0x44cc30
lea ecx, [esp + 0x15c]
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.00419a00
add esp, 0xc
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x160]
mov byte [esp + 0x278], 0xd
call fcn.00405510
mov byte [esp + 0x270], 0xb
cmp dword [esp + 0xa8], esi
jb 0x411010
mov eax, dword [esp + 0x94]
push eax
call fcn.0042c65c
add esp, 4
mov eax, dword [esp + 0x15c]
xor ecx, ecx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], ebp
mov word [esp + 0x94], cx
cmp dword [esp + 0x170], esi
jae 0x41103f
lea eax, [esp + 0x15c]
push eax
call fcn.0041a750
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ecx, 0xc1c
jle 0x41114d
cmp eax, ecx
jge 0x41114d
sub esp, 0x1c
lea edx, [esp + 0x190]
mov esi, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040e980
call fcn.00411750
test al, al
je 0x411148
lea esi, [esp + 0x14]
call fcn.00404d10
mov byte [esp + 0x270], 0xe
cmp dword [edi + 0x18], 8
jb 0x41109f
mov edi, dword [edi + 4]
jmp 0x4110a2
add edi, 4
push edi
push 0x44cc34
lea edi, [esp + 0x1c]
call fcn.00405d90
mov eax, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0x190]
call fcn.00404e00
mov byte [esp + 0x270], 0xf
cmp dword [esp + 0x1a8], 8
mov eax, dword [esp + 0x194]
jae 0x4110e4
lea eax, [esp + 0x194]
mov edi, dword [esp + 0x1c]
push ebp
push 0x44cc58
lea esi, [edi + 0x22c]
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push ebp
mov ecx, esi
call edx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
mov eax, dword [edi + 0x19c]
mov edx, dword [eax + 0x48]
lea ecx, [edi + 0x19c]
push ebp
call edx
push eax
call esi
push edi
call fcn.00410830
lea esi, [esp + 0x190]
call fcn.00404e40
lea ecx, [esp + 0x14]
call fcn.00404de0
mov esi, 8
cmp dword [esp + 0x170], esi
jb 0x411166
mov eax, dword [esp + 0x15c]
push eax
call fcn.0042c65c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x170], ebx
mov dword [esp + 0x16c], ebp
mov word [esp + 0x15c], cx
cmp dword [esp + 0x18c], esi
jb 0x411197
mov edx, dword [esp + 0x178]
push edx
call fcn.0042c65c
add esp, 4
xor eax, eax
cmp dword [esp + 0x154], esi
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x188], ebp
mov word [esp + 0x178], ax
jmp 0x41144c
cmp eax, 1
jne 0x411467
cmp ecx, ebp
jne 0x4116ff
call fcn.0041b920
cmp eax, ebp
je 0x411313
push 0x40
lea edx, [esp + 0x34]
push ebp
push edx
mov dword [esp + 0x164], ebp
mov dword [esp + 0x168], ebp
mov dword [esp + 0x16c], ebp
mov dword [esp + 0x170], ebp
call fcn.00430980
add esp, 0xc
push 0x7e
lea edx, [esp + 0x1ea]
xor eax, eax
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x38], 0x44
mov word [esp + 0x68], ax
mov dword [esp + 0x64], 1
mov word [esp + 0x1f0], cx
call fcn.00430980
add esp, 0xc
mov eax, str.__S__SQUPGRADE
lea ecx, [esp + 0x13c]
call fcn.00404e00
mov ebx, 0x10
mov dword [esp + 0x270], ebx
mov eax, dword [esp + 0x140]
mov edi, 8
cmp dword [esp + 0x154], edi
jae 0x411272
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x1e8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
cmp dword [esi + 0x34], edi
jb 0x41128b
mov esi, dword [esi + 0x20]
jmp 0x41128e
add esi, 0x20
lea ecx, [esp + 0x158]
push ecx
lea edx, [esp + 0x30]
push edx
push ebp
push ebp
push 0x220
push ebp
push ebp
push ebp
lea eax, [esp + 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411445
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.0041a0c0
mov edi, dword [esp + 0x38]
sub esp, 0x1c
mov byte [esp + 0x2a8], 0x11
lea ecx, [edi + 0xd98]
mov esi, esp
mov dword [esp + 0x58], esp
push ecx
call fcn.0040e980
sub esp, 0x1c
mov byte [esp + 0x2c4], 0x12
mov eax, str.lastUpgradeVer
mov ecx, esp
mov dword [esp + 0x78], esp
call fcn.00404e00
mov byte [esp + 0x2c4], 0x13
jmp 0x4113fc
mov eax, str._S__SQUPGRADE
lea ecx, [esp + 0x13c]
call fcn.00404e00
push 0x38
lea edx, [esp + 0x34]
mov ebx, 0x14
push ebp
mov dword [esp + 0x278], ebx
push edx
mov dword [esp + 0x38], 0x3c
call fcn.00430980
mov edi, 8
add esp, 0xc
mov dword [esp + 0x38], str.runas
cmp dword [esi + 0x34], edi
jb 0x411363
mov eax, dword [esi + 0x20]
mov dword [esp + 0x3c], eax
jmp 0x41136a
add esi, 0x20
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x154], edi
jb 0x411380
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x40], ecx
jmp 0x41138b
lea edx, [esp + 0x140]
mov dword [esp + 0x40], edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x411445
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.0041a0c0
mov edi, dword [esp + 0x38]
sub esp, 0x1c
mov byte [esp + 0x2a8], 0x15
lea ecx, [edi + 0xd98]
mov esi, esp
mov dword [esp + 0x58], esp
push ecx
call fcn.0040e980
sub esp, 0x1c
mov byte [esp + 0x2c4], 0x16
mov eax, str.lastUpgradeVer
mov ecx, esp
mov dword [esp + 0x78], esp
call fcn.00404e00
mov byte [esp + 0x2c4], 0x17
sub esp, 0x1c
mov eax, str.version
mov ecx, esp
mov dword [esp + 0x98], esp
call fcn.00404e00
mov byte [esp + 0x2e0], bl
call fcn.0041a4b0
mov edx, dword [edi + 0x22c]
mov eax, dword [edx + 0x48]
add esp, 0x70
push ebp
lea ecx, [edi + 0x22c]
push ebp
push 0x4c9
call eax
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 8
cmp dword [esp + 0x154], edi
jb 0x4116ff
mov ecx, dword [esp + 0x140]
push ecx
call fcn.0042c65c
add esp, 4
jmp 0x4116ff
cmp eax, 2
jne 0x4116d6
cmp ecx, ebp
jne 0x4116b5
mov ebx, 8
cmp dword [esi + 0x34], ebx
jb 0x411487
mov eax, dword [esi + 0x20]
jmp 0x41148a
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4116b5
cmp dword [esi + 0x34], ebx
jb 0x4114a3
mov esi, dword [esi + 0x20]
jmp 0x4114a6
add esi, 0x20
push esi
lea edx, [esp + 0xb0]
push edx
call fcn.00413930
mov dword [esp + 0x270], 0x18
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 4]
mov ecx, dword [esp + ecx + 0xb4]
test cl, 6
jne 0x41169c
mov dword [esp + 0x1c4], 0xf
mov dword [esp + 0x1c0], ebp
mov byte [esp + 0x1b0], 0
mov byte [esp + 0x270], 0x19
mov edx, dword [eax + 4]
push 0xa
lea eax, [esp + edx + 0xb0]
push eax
call fcn.00415220
movzx ecx, al
push ecx
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x1b4]
call fcn.00415970
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x411690
push 1
push 0x44ccac
lea ecx, [esp + 0x1b4]
push ecx
call fcn.00414780
push 1
push 0x44ccb0
lea edx, [esp + 0x1b4]
push edx
mov edi, eax
call fcn.00414780
push 2
mov esi, eax
push 0x44ccb4
lea eax, [esp + 0x1b4]
push eax
call fcn.00414780
cmp eax, 0xffffffff
je 0x411596
cmp edi, 0xffffffff
je 0x411596
cmp esi, 0xffffffff
jne 0x4115ee
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0xb0]
push eax
call fcn.00415220
movzx ecx, al
push ecx
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x1b4]
call fcn.00415970
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x411547
jmp 0x411690
sub esi, edi
dec esi
push esi
lea ecx, [edi + 1]
lea esi, [esp + 0x1cc]
lea edx, [esp + 0x1b0]
call fcn.004137e0
xor ecx, ecx
mov dword [esp + 0x1a8], 7
mov dword [esp + 0x1a4], ebp
mov word [esp + 0x194], cx
mov byte [esp + 0x270], 0x1b
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x411644
lea eax, [esp + 0x1cc]
lea edx, [esp + 0x190]
push edx
push eax
call fcn.0041ac90
sub esp, 0x14
lea eax, [esp + 0x1ac]
mov esi, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040e980
mov ecx, dword [esp + 0x38]
add ecx, 0xca8
push ecx
call fcn.004280c0
lea esi, [esp + 0x190]
call fcn.00404e40
lea ecx, [esp + 0x1c8]
call fcn.0040cf10
lea ecx, [esp + 0x1ac]
call fcn.0040cf10
lea eax, [esp + 0xac]
mov dword [esp + 0x270], 0xffffffff
call fcn.00411730
jmp 0x4116ff
sub esp, 0x1c
mov eax, str.error
mov ecx, esp
mov dword [esp + 0x34], esp
call fcn.00404e00
add edi, 0xca8
push edi
call fcn.004280c0
jmp 0x4116ff
cmp eax, 3
je 0x4116e0
cmp eax, 4
jne 0x4116ff
mov edx, dword [edi + 0x22c]
mov eax, dword [edx + 0x48]
push ebp
lea ecx, [edi + 0x22c]
push ebp
push 0x4c9
call eax
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0042c667
add esp, 0x260
ret 8