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

Disassembly:
push 0xffffffffffffffff
push 0x447604
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x4561c4]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0x1a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1b4]
mov edi, dword [esp + 0x1bc]
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 0x24], ebx
cmp eax, ebp
jne 0x41c695
cmp dword [esp + 0x1b8], ebp
jne 0x41cc47
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
xor eax, eax
mov ebx, 7
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push 0xffffffffffffffff
add edi, 0x1c
mov word [ecx + 4], ax
push ebp
mov eax, edi
call fcn.00401990
sub esp, 0x1c
mov dword [esp + 0x1e4], ebp
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, 0x44ac48
mov word [esi + 4], cx
call fcn.00401b20
sub esp, 0x1c
mov byte [esp + 0x200], 1
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.currentversion
mov word [esi + 4], dx
call fcn.00401b20
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x21c], 2
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov dword [esp + 0x88], esp
mov word [esi + 4], ax
push ebx
mov eax, str.version
call fcn.00401b20
lea ecx, [esp + 0x114]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00423b30
add esp, 0x54
mov dword [esp + 0x1c8], 3
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push ebp
mov eax, edi
mov word [ecx + 4], dx
call fcn.00401990
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x1e4], 4
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, 0x44ac48
call fcn.00401b20
sub esp, 0x1c
mov byte [esp + 0x200], 5
mov dword [esp + 0x70], esp
mov esi, esp
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push 0xc
mov eax, str.upgraderange
mov word [esi + 4], cx
call fcn.00401b20
sub esp, 0x1c
mov byte [esp + 0x21c], 6
mov esi, esp
mov dword [esp + 0x84], 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.00401b20
lea ecx, [esp + 0x14c]
mov byte [esp + 0x21c], 3
call fcn.00423b30
add esp, 0x54
mov byte [esp + 0x1c8], bl
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.00423980
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x1e4], 8
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, 0x44ac48
call fcn.00401b20
sub esp, 0x1c
mov byte [esp + 0x200], 9
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.lastUpgradeVer
mov word [esi + 4], cx
call fcn.00401b20
sub esp, 0x1c
mov byte [esp + 0x21c], 0xa
mov esi, esp
mov dword [esp + 0x84], 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.00401b20
lea ecx, [esp + 0x130]
mov byte [esp + 0x21c], bl
call fcn.00423b30
add esp, 0x70
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
add ecx, 0x2314
push ebp
lea eax, [esp + 0xac]
mov byte [esp + 0x1b4], 0xb
call fcn.00401990
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x8c]
push ecx
mov edi, 0x44c45c
call fcn.004231f0
add esp, 8
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xac]
mov byte [esp + 0x1b4], 0xc
call fcn.00401990
mov esi, 8
mov byte [esp + 0x1ac], 0xb
cmp dword [esp + 0xa0], esi
jb 0x41c42b
mov edx, dword [esp + 0x8c]
push edx
call fcn.0042bcf0
add esp, 4
xor eax, eax
mov word [esp + 0x8c], ax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], ebp
cmp dword [esp + 0xbc], esi
jae 0x41c45a
lea eax, [esp + 0xa8]
push eax
call fcn.00424000
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
je 0x41c611
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x70]
push ecx
mov edi, 0x44c45c
call fcn.004231f0
add esp, 8
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1b4], 0xd
call fcn.00401990
mov byte [esp + 0x1ac], 0xb
cmp dword [esp + 0x84], esi
jb 0x41c4be
mov edx, dword [esp + 0x70]
push edx
call fcn.0042bcf0
add esp, 4
xor eax, eax
mov word [esp + 0x70], ax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebp
cmp dword [esp + 0xd8], esi
jae 0x41c4ea
lea eax, [esp + 0xc4]
push eax
call fcn.00424000
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ecx, 0xbb8
jle 0x41c611
cmp eax, ecx
jge 0x41c611
sub esp, 0x1c
lea ecx, [esp + 0xf8]
mov esi, esp
mov dword [esp + 0x34], esp
push ecx
call fcn.004018d0
call fcn.0041cca0
test al, al
je 0x41c60c
lea esi, [esp + 0x14]
call fcn.0040aae0
mov eax, dword [esp + 0x24]
add eax, 0x2314
mov esi, 8
mov byte [esp + 0x1ac], 0xe
cmp dword [eax + 0x18], esi
jb 0x41c557
mov eax, dword [eax + 4]
jmp 0x41c55a
add eax, 4
push eax
push 0x44c460
lea edi, [esp + 0x1c]
call fcn.0040ea70
mov eax, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0xf8]
call fcn.00401890
mov byte [esp + 0x1ac], 0xf
mov eax, dword [esp + 0xfc]
cmp dword [esp + 0x110], esi
jae 0x41c59b
lea eax, [esp + 0xfc]
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 0x264]
push ebp
lea esi, [edi + 0x264]
push 0x44c484
push eax
mov eax, dword [edx + 0x8c]
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
push ebp
mov ecx, esi
call eax
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
mov edx, dword [edi + 0x19c]
mov eax, dword [edx + 0x8c]
lea ecx, [edi + 0x19c]
push ebp
call eax
push eax
call esi
push edi
call fcn.0041bfc0
lea esi, [esp + 0xf8]
call fcn.004200f0
lea ecx, [esp + 0x14]
call fcn.0040ab00
mov esi, 8
cmp dword [esp + 0xd8], esi
jb 0x41c62a
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0042bcf0
add esp, 4
xor edx, edx
mov word [esp + 0xc4], dx
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd8], ebx
cmp dword [esp + 0xf4], esi
jb 0x41c65b
mov eax, dword [esp + 0xe0]
push eax
call fcn.0042bcf0
add esp, 4
xor ecx, ecx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf0], ebp
mov word [esp + 0xe0], cx
cmp dword [esp + 0xbc], esi
jb 0x41cc47
mov edx, dword [esp + 0xa8]
push edx
call fcn.0042bcf0
add esp, 4
jmp 0x41cc47
cmp eax, 1
jne 0x41c9a7
cmp dword [esp + 0x1b8], ebp
jne 0x41cc47
call fcn.004248b0
cmp eax, ebp
je 0x41c854
push 0x40
lea eax, [esp + 0x30]
push ebp
push eax
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd8], ebp
call fcn.0042f810
push 0x7e
lea eax, [esp + 0x126]
xor ecx, ecx
xor edx, edx
push ebp
push eax
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], cx
mov dword [esp + 0x6c], 1
mov word [esp + 0x12c], dx
call fcn.0042f810
add esp, 0x18
mov eax, str.__S__SQUPGRADE
lea ecx, [esp + 0xa4]
call fcn.00401890
mov dword [esp + 0x1ac], 0x10
mov eax, dword [esp + 0xa8]
mov esi, 8
cmp dword [esp + 0xbc], esi
jae 0x41c74d
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
cmp dword [edi + 0x34], esi
jb 0x41c766
mov edi, dword [edi + 0x20]
jmp 0x41c769
add edi, 0x20
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
push ebp
push 0x220
push ebp
push ebp
push ebp
lea ecx, [esp + 0x134]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41c832
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.00423980
sub esp, 0x1c
mov byte [esp + 0x1e4], 0x11
lea edx, [ebx + 0x2314]
mov esi, esp
mov dword [esp + 0x58], esp
push edx
call fcn.004018d0
sub esp, 0x1c
mov byte [esp + 0x200], 0x12
mov eax, str.lastUpgradeVer
mov ecx, esp
mov dword [esp + 0x70], esp
call fcn.00401890
sub esp, 0x1c
mov byte [esp + 0x21c], 0x13
mov eax, str.version
mov ecx, esp
mov dword [esp + 0x84], esp
call fcn.00401890
mov byte [esp + 0x21c], 0x10
call fcn.00423d60
mov eax, dword [ebx + 0x264]
mov edx, dword [eax + 0x8c]
add esp, 0x70
push ebp
lea ecx, [ebx + 0x264]
push ebp
push 0x4c9
call edx
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, 8
cmp dword [esp + 0xbc], esi
jb 0x41cc47
mov eax, dword [esp + 0xa8]
push eax
call fcn.0042bcf0
add esp, 4
jmp 0x41cc47
mov eax, str._S__SQUPGRADE
lea ecx, [esp + 0xa4]
call fcn.00401890
push 0x38
lea ecx, [esp + 0x30]
push ebp
mov dword [esp + 0x1b4], 0x14
push ecx
mov dword [esp + 0x34], 0x3c
call fcn.0042f810
mov esi, 8
add esp, 0xc
mov dword [esp + 0x34], str.runas
cmp dword [edi + 0x34], esi
jb 0x41c8a3
mov edx, dword [edi + 0x20]
mov dword [esp + 0x38], edx
jmp 0x41c8aa
add edi, 0x20
mov dword [esp + 0x38], edi
cmp dword [esp + 0xbc], esi
jb 0x41c8c0
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x3c], eax
jmp 0x41c8cb
lea ecx, [esp + 0xa8]
mov dword [esp + 0x3c], ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x48], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41c985
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.00423980
sub esp, 0x1c
mov byte [esp + 0x1e4], 0x15
lea eax, [ebx + 0x2314]
mov esi, esp
mov dword [esp + 0x58], esp
push eax
call fcn.004018d0
sub esp, 0x1c
mov byte [esp + 0x200], 0x16
mov eax, str.lastUpgradeVer
mov ecx, esp
mov dword [esp + 0x70], esp
call fcn.00401890
sub esp, 0x1c
mov byte [esp + 0x21c], 0x17
mov eax, str.version
mov ecx, esp
mov dword [esp + 0x84], esp
call fcn.00401890
mov byte [esp + 0x21c], 0x14
call fcn.00423d60
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 esi, 8
cmp dword [esp + 0xbc], esi
jb 0x41cc47
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0042bcf0
add esp, 4
jmp 0x41cc47
cmp eax, 2
jne 0x41cc1b
lea esi, [eax + 6]
cmp dword [esp + 0x1b8], ebp
jne 0x41cbef
cmp dword [edi + 0x34], esi
jb 0x41c9ca
mov eax, dword [edi + 0x20]
jmp 0x41c9cd
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cbef
cmp dword [edi + 0x34], esi
jb 0x41c9e6
mov edi, dword [edi + 0x20]
jmp 0x41c9e9
add edi, 0x20
push 1
push edi
lea edx, [esp + 0x11c]
push edx
call fcn.0041eb90
mov dword [esp + 0x1ac], 0x18
mov eax, dword [esp + 0x114]
mov ecx, dword [eax + 4]
mov ecx, dword [esp + ecx + 0x11c]
test cl, 6
jne 0x41cbd6
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], ebp
mov byte [esp + 0xa8], 0
mov byte [esp + 0x1ac], 0x19
mov edx, dword [eax + 4]
push 0xa
lea eax, [esp + edx + 0x118]
push eax
call fcn.0040cea0
movzx ecx, al
push ecx
lea edx, [esp + 0x118]
push edx
lea ecx, [esp + 0xac]
call fcn.0041fef0
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 0x41cbca
push 1
push 0x44c4d8
lea ecx, [esp + 0xac]
push ecx
call fcn.0041f950
push 1
push 0x44c4dc
lea edx, [esp + 0xac]
push edx
mov edi, eax
call fcn.0041f950
push 2
mov esi, eax
push 0x44c4e0
lea eax, [esp + 0xac]
push eax
call fcn.0041f950
cmp eax, 0xffffffff
je 0x41cadb
cmp edi, 0xffffffff
je 0x41cadb
cmp esi, 0xffffffff
jne 0x41cb33
mov ecx, dword [esp + 0x114]
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0x118]
push eax
call fcn.0040cea0
movzx ecx, al
push ecx
lea edx, [esp + 0x118]
push edx
lea ecx, [esp + 0xac]
call fcn.0041fef0
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 0x41ca8c
jmp 0x41cbca
sub esi, edi
dec esi
push esi
lea ecx, [edi + 1]
lea esi, [esp + 0xfc]
lea edx, [esp + 0xa8]
call fcn.0041eb60
xor ecx, ecx
mov dword [esp + 0xf4], 7
mov dword [esp + 0xf0], ebp
mov word [esp + 0xe0], cx
mov byte [esp + 0x1ac], 0x1b
cmp dword [esp + 0x110], 0x10
mov eax, dword [esp + 0xfc]
jae 0x41cb89
lea eax, [esp + 0xfc]
lea edx, [esp + 0xdc]
push edx
push eax
call fcn.00424630
sub esp, 0x14
lea eax, [esp + 0xf8]
mov esi, esp
mov dword [esp + 0x34], esp
push eax
call fcn.004018d0
call fcn.0040e610
lea esi, [esp + 0xdc]
call fcn.004200f0
lea ecx, [esp + 0xf8]
call fcn.004027e0
lea ecx, [esp + 0xa4]
call fcn.004027e0
lea eax, [esp + 0x114]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.0041cc80
jmp 0x41cc47
mov eax, str.error
lea ecx, [esp + 0xf8]
call fcn.00401890
cmp dword [esp + 0x110], esi
jb 0x41cc47
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.0042bcf0
add esp, 4
jmp 0x41cc47
cmp eax, 3
je 0x41cc25
cmp eax, 4
jne 0x41cc47
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 + 0x1a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.0042bcfb
add esp, 0x19c
ret 0xc