Function at 0x46bc70
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf70a
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x640844]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x1a8]
call fcn.0044e660
lea eax, [ebp - 0x1a8]
mov dword [ebp - 4], 0
push eax
call fcn.0044eab0
add esp, 4
lea ecx, [ebp - 0xe8]
call fcn.00489610
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 1
push eax
call fcn.0048fda0
add esp, 4
mov ecx, dword [ebp - 0x1b4]
lea edx, [ebp - 0xe8]
push 1
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x46bf96
push 0
lea ecx, [ebp - 0xe8]
call fcn.00489750
push eax
lea ecx, [ebp - 0x1a8]
call fcn.0044ef00
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x46bf38
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0x44
push 0x5deb1c
lea ecx, [ebp - 0xe8]
movlpd qword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x1c4], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
call fcn.00489bf0
push str._uninstall
lea ecx, [ebp - 0x148]
call fcn.00489430
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xe8]
call fcn.00489ba0
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
call fcn.00419a70
push 0x5deb1c
lea ecx, [ebp - 0xe8]
call fcn.00489bf0
push str._temp
lea ecx, [ebp - 0x148]
call fcn.00489430
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xe8]
call fcn.00489ba0
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
call fcn.00419a70
lea ecx, [ebp - 0xe8]
call fcn.00489750
mov edx, eax
mov dword [ebp - 0x28], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46be20
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0041b0d0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x1c4]
push ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x46beb2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46bea6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46be9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bfff
push edx
push ecx
call fcn.004ece5f
add esp, 8
mov byte [ebp - 0x1a9], 1
jmp 0x46bf9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x46bef8
lea eax, [ebp - 0x148]
push esi
push eax
call fcn.0045e040
add esp, 8
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 6
call fcn.00489750
push eax
push esi
push str.Failed_to_launch_temp_installer__0x_08x_:_s_n
push edi
call fcn.0043a360
add esp, 0x10
lea ecx, [ebp - 0x148]
call fcn.00419a70
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46bf96
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46bf2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bfff
push edx
push ecx
call fcn.004ece5f
add esp, 8
jmp 0x46bf96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x46bf96
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.0045e040
cmp dword [ebp - 0x74], 0x10
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 7
cmovae ecx, dword [ebp - 0x88]
cmp dword [ebp - 0xd4], 0x10
push ecx
cmovae eax, dword [ebp - 0xe8]
push esi
push eax
push str.Failed_to_copy_installer_to__s__0x_08x_:_s_n
push edi
call fcn.0043a360
add esp, 0x1c
lea ecx, [ebp - 0x88]
call fcn.00419a70
mov byte [ebp - 0x1a9], 0
mov esi, dword [ebp - 0x1b0]
test esi, esi
je 0x46bfc8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x46bfc8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x46bfc8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea ecx, [ebp - 0xe8]
call fcn.00419a70
lea ecx, [ebp - 0x1a8]
call fcn.0044e680
mov al, byte [ebp - 0x1a9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret
call fcn.004f242f
int3