Function at 0x41b810
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x444f64
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x4531c4]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4531c4]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1b8]
mov esi, dword [esp + 0x1c0]
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 0x28], ebx
cmp eax, ebp
jne 0x41bde3
cmp dword [esp + 0x1bc], ebp
jne 0x41c347
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], 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.00401a20
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x1e8], ebp
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov dword [esp + 0x58], esp
mov word [esi + 4], ax
push ebp
mov eax, 0x448c20
call fcn.00401bb0
sub esp, 0x1c
mov byte [esp + 0x204], 1
mov esi, esp
mov dword [esp + 0x70], 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.00401bb0
sub esp, 0x1c
mov byte [esp + 0x220], 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.00401bb0
lea edi, [esp + 0x118]
mov dword [esp + 0x220], 0xffffffff
call fcn.00422990
add esp, 0x54
mov dword [esp + 0x1cc], 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.00401a20
sub esp, 0x1c
mov byte [esp + 0x1e8], 4
mov esi, esp
mov dword [esp + 0x54], esp
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x448c20
mov word [esi + 4], cx
call fcn.00401bb0
sub esp, 0x1c
mov byte [esp + 0x204], 5
mov dword [esp + 0x74], 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.00401bb0
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x220], 6
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov dword [esp + 0x94], esp
mov word [esi + 4], ax
push ebx
mov eax, str.version
call fcn.00401bb0
lea edi, [esp + 0x150]
mov byte [esp + 0x220], 3
call fcn.00422990
add esp, 0x54
mov byte [esp + 0x1cc], bl
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.004227e0
sub esp, 0x1c
mov byte [esp + 0x1e8], 8
mov esi, esp
mov dword [esp + 0x54], esp
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x448c20
mov word [esi + 4], cx
call fcn.00401bb0
sub esp, 0x1c
mov byte [esp + 0x204], 9
mov esi, esp
mov dword [esp + 0x74], 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.00401bb0
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x220], 0xa
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov dword [esp + 0x94], esp
mov word [esi + 4], ax
push ebx
mov eax, str.version
call fcn.00401bb0
lea edi, [esp + 0x134]
mov byte [esp + 0x220], bl
call fcn.00422990
add esp, 0x70
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
add ecx, 0x2314
push ebp
lea eax, [esp + 0xb0]
mov byte [esp + 0x1b8], 0xb
call fcn.00401a20
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x90]
push edx
mov edi, 0x44a304
call fcn.00422130
add esp, 8
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1b8], 0xc
call fcn.00401a20
mov esi, 8
mov byte [esp + 0x1b0], 0xb
cmp dword [esp + 0xa4], esi
jb 0x41bb0f
mov eax, dword [esp + 0x90]
push eax
call fcn.00429ba0
add esp, 4
mov eax, dword [esp + 0xac]
xor ecx, ecx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], ebp
mov word [esp + 0x90], cx
cmp dword [esp + 0xc0], esi
jae 0x41bb3e
lea eax, [esp + 0xac]
push eax
call fcn.00422e70
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x41bbd7
cmp dword [esp + 0xdc], esi
jb 0x41bb6c
mov edx, dword [esp + 0xc8]
push edx
call fcn.00429ba0
add esp, 4
xor eax, eax
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd8], ebp
mov word [esp + 0xc8], ax
cmp dword [esp + 0xf8], esi
jb 0x41bb9d
mov ecx, dword [esp + 0xe4]
push ecx
call fcn.00429ba0
add esp, 4
xor edx, edx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xf4], ebp
mov word [esp + 0xe4], dx
cmp dword [esp + 0xc0], esi
jb 0x41c347
mov eax, dword [esp + 0xac]
push eax
call fcn.00429ba0
add esp, 4
jmp 0x41c347
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x74]
push edx
mov edi, 0x44a304
call fcn.00422130
add esp, 8
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xcc]
mov byte [esp + 0x1b8], 0xd
call fcn.00401a20
mov byte [esp + 0x1b0], 0xb
cmp dword [esp + 0x88], esi
jb 0x41bc26
mov eax, dword [esp + 0x74]
push eax
call fcn.00429ba0
add esp, 4
mov eax, dword [esp + 0xc8]
xor ecx, ecx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], cx
cmp dword [esp + 0xdc], esi
jae 0x41bc52
lea eax, [esp + 0xc8]
push eax
call fcn.00422e70
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ecx, 0xbb8
jle 0x41bd75
cmp eax, ecx
jge 0x41bd75
sub esp, 0x1c
lea edx, [esp + 0xfc]
mov esi, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00401960
call fcn.0041c3a0
test al, al
je 0x41bd70
lea esi, [esp + 0x14]
call fcn.0040ac00
mov eax, dword [esp + 0x28]
add eax, 0x2314
mov esi, 8
mov byte [esp + 0x1b0], 0xe
cmp dword [eax + 0x18], esi
jb 0x41bcbf
mov eax, dword [eax + 4]
jmp 0x41bcc2
add eax, 4
push eax
push 0x44a308
lea edi, [esp + 0x1c]
call fcn.0040ea50
mov eax, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0xfc]
call fcn.00401920
mov byte [esp + 0x1b0], 0xf
mov eax, dword [esp + 0x100]
cmp dword [esp + 0x114], esi
jae 0x41bd03
lea eax, [esp + 0x100]
mov edi, dword [esp + 0x28]
push ebp
push 0x44a32c
lea esi, [edi + 0x264]
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
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 + 0x8c]
lea ecx, [edi + 0x19c]
push ebp
call edx
push eax
call esi
push edi
call fcn.0041b6a0
lea esi, [esp + 0xfc]
call fcn.00401990
lea ecx, [esp + 0x14]
call fcn.0040ac20
mov esi, 8
cmp dword [esp + 0xdc], esi
jb 0x41bd8e
mov eax, dword [esp + 0xc8]
push eax
call fcn.00429ba0
add esp, 4
xor ecx, ecx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd8], ebp
mov word [esp + 0xc8], cx
cmp dword [esp + 0xf8], esi
jb 0x41bdbf
mov edx, dword [esp + 0xe4]
push edx
call fcn.00429ba0
add esp, 4
xor eax, eax
cmp dword [esp + 0xc0], esi
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xf4], ebp
mov word [esp + 0xe4], ax
jmp 0x41c08e
cmp eax, 1
jne 0x41c0a9
cmp dword [esp + 0x1bc], ebp
jne 0x41c347
call fcn.004236a0
cmp eax, ebp
je 0x41bf56
push 0x40
lea edx, [esp + 0x34]
push ebp
push edx
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xdc], ebp
call fcn.0042d690
push 0x7e
lea edx, [esp + 0x12a]
xor eax, eax
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x44], 0x44
mov word [esp + 0x74], ax
mov dword [esp + 0x70], 1
mov word [esp + 0x130], cx
call fcn.0042d690
add esp, 0x18
mov eax, str.__S__SQUPGRADE
lea ecx, [esp + 0xa8]
call fcn.00401920
mov dword [esp + 0x1b0], 0x10
mov eax, dword [esp + 0xac]
mov edi, 8
cmp dword [esp + 0xc0], edi
jae 0x41be9b
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
cmp dword [esi + 0x34], edi
jb 0x41beb4
mov esi, dword [esi + 0x20]
jmp 0x41beb7
add esi, 0x20
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x30]
push edx
push ebp
push ebp
push 0x220
push ebp
push ebp
push ebp
lea eax, [esp + 0x138]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41c087
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.004227e0
sub esp, 0x1c
mov byte [esp + 0x1e8], 0x11
lea ecx, [ebx + 0x2314]
mov esi, esp
mov dword [esp + 0x54], esp
push ecx
call fcn.00401960
sub esp, 0x1c
mov byte [esp + 0x204], 0x12
mov eax, str.lastUpgradeVer
mov ecx, esp
mov dword [esp + 0x74], esp
call fcn.00401920
sub esp, 0x1c
mov byte [esp + 0x220], 0x13
mov eax, str.version
mov ecx, esp
mov dword [esp + 0x94], esp
call fcn.00401920
mov byte [esp + 0x220], 0x10
jmp 0x41c058
mov eax, str._S__SQUPGRADE
lea ecx, [esp + 0xa8]
call fcn.00401920
push 0x38
lea edx, [esp + 0x34]
push ebp
mov dword [esp + 0x1b8], 0x14
push edx
mov dword [esp + 0x38], 0x3c
call fcn.0042d690
mov edi, 8
add esp, 0xc
mov dword [esp + 0x38], str.runas
cmp dword [esi + 0x34], edi
jb 0x41bfa5
mov eax, dword [esi + 0x20]
mov dword [esp + 0x3c], eax
jmp 0x41bfac
add esi, 0x20
mov dword [esp + 0x3c], esi
cmp dword [esp + 0xc0], edi
jb 0x41bfc2
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x40], ecx
jmp 0x41bfcd
lea edx, [esp + 0xac]
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 0x41c087
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.004227e0
sub esp, 0x1c
mov byte [esp + 0x1e8], 0x15
lea ecx, [ebx + 0x2314]
mov esi, esp
mov dword [esp + 0x54], esp
push ecx
call fcn.00401960
sub esp, 0x1c
mov byte [esp + 0x204], 0x16
mov eax, str.lastUpgradeVer
mov ecx, esp
mov dword [esp + 0x74], esp
call fcn.00401920
sub esp, 0x1c
mov byte [esp + 0x220], 0x17
mov eax, str.version
mov ecx, esp
mov dword [esp + 0x94], esp
call fcn.00401920
mov byte [esp + 0x220], 0x14
call fcn.00422bd0
mov edx, dword [ebx + 0x264]
mov eax, dword [edx + 0x8c]
add esp, 0x70
push ebp
lea ecx, [ebx + 0x264]
push ebp
push 0x4c9
call eax
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 8
cmp dword [esp + 0xc0], edi
jb 0x41c347
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00429ba0
add esp, 4
jmp 0x41c347
cmp eax, 2
jne 0x41c31b
lea edi, [eax + 6]
cmp dword [esp + 0x1bc], ebp
jne 0x41c2ef
cmp dword [esi + 0x34], edi
jb 0x41c0cc
mov eax, dword [esi + 0x20]
jmp 0x41c0cf
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c2ef
cmp dword [esi + 0x34], edi
jb 0x41c0e8
mov esi, dword [esi + 0x20]
jmp 0x41c0eb
add esi, 0x20
push esi
lea edx, [esp + 0x11c]
push edx
call fcn.0041dd80
mov dword [esp + 0x1b0], 0x18
mov eax, dword [esp + 0x118]
mov ecx, dword [eax + 4]
mov ecx, dword [esp + ecx + 0x120]
test cl, 6
jne 0x41c2d6
mov dword [esp + 0xc0], 0xf
mov dword [esp + 0xbc], ebp
mov byte [esp + 0xac], 0
mov byte [esp + 0x1b0], 0x19
mov edx, dword [eax + 4]
push 0xa
lea eax, [esp + edx + 0x11c]
push eax
call fcn.0040ce00
movzx ecx, al
push ecx
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0xb0]
call fcn.0041f0c0
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 0x41c2ca
push 1
push 0x44a380
lea ecx, [esp + 0xb0]
push ecx
call fcn.0041eb40
push 1
push 0x44a384
lea edx, [esp + 0xb0]
push edx
mov edi, eax
call fcn.0041eb40
push 2
mov esi, eax
push 0x44a388
lea eax, [esp + 0xb0]
push eax
call fcn.0041eb40
cmp eax, 0xffffffff
je 0x41c1db
cmp edi, 0xffffffff
je 0x41c1db
cmp esi, 0xffffffff
jne 0x41c233
mov ecx, dword [esp + 0x118]
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0x11c]
push eax
call fcn.0040ce00
movzx ecx, al
push ecx
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0xb0]
call fcn.0041f0c0
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 0x41c18c
jmp 0x41c2ca
sub esi, edi
dec esi
push esi
lea ecx, [edi + 1]
lea esi, [esp + 0x100]
lea edx, [esp + 0xac]
call fcn.0041dd50
xor ecx, ecx
mov dword [esp + 0xf8], 7
mov dword [esp + 0xf4], ebp
mov word [esp + 0xe4], cx
mov byte [esp + 0x1b0], 0x1b
cmp dword [esp + 0x114], 0x10
mov eax, dword [esp + 0x100]
jae 0x41c289
lea eax, [esp + 0x100]
lea edx, [esp + 0xe0]
push edx
push eax
call fcn.00423420
sub esp, 0x14
lea eax, [esp + 0xfc]
mov esi, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00401960
call fcn.0040e5d0
lea esi, [esp + 0xe0]
call fcn.00401990
lea ecx, [esp + 0xfc]
call fcn.004028c0
lea ecx, [esp + 0xa8]
call fcn.004028c0
lea eax, [esp + 0x118]
mov dword [esp + 0x1b0], 0xffffffff
call fcn.0041c380
jmp 0x41c347
mov eax, str.error
lea ecx, [esp + 0xfc]
call fcn.00401920
cmp dword [esp + 0x114], edi
jb 0x41c347
mov ecx, dword [esp + 0x100]
push ecx
call fcn.00429ba0
add esp, 4
jmp 0x41c347
cmp eax, 3
je 0x41c325
cmp eax, 4
jne 0x41c347
mov edx, dword [ebx + 0x264]
mov eax, dword [edx + 0x8c]
push ebp
lea ecx, [ebx + 0x264]
push ebp
push 0x4c9
call eax
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00429bab
add esp, 0x1a0
ret 0xc