Function at 0x408890
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579a46
mov eax, dword fs:[0]
push eax
sub esp, 0xc84
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x3fe
mov edi, ecx
push eax
lea ecx, [ebp - 0xc2e]
push ecx
mov word [ebp - 0xc30], ax
call fcn.00550f40
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x82e]
push eax
mov word [ebp - 0x830], dx
call fcn.00550f40
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.00550f40
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.00550f40
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x626]
push eax
mov word [ebp - 0x628], dx
call fcn.00550f40
add esp, 0xc
lea ecx, [ebp - 0x830]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0054e439
add esp, 4
call fcn.0054e44b
push eax
lea edx, [ebp - 0x830]
push edx
lea eax, [ebp - 0x218]
push str._sDesUpdate_d_
push eax
call fcn.0054e46c
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xc34]
call fcn.004079b0
lea edx, [ebp - 0xc34]
push edx
mov dword [ebp - 4], 0
call fcn.00449bd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc34]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x200
lea ecx, [ebp - 0xc30]
push ecx
push 0
call ebx
push ecx
lea edx, [ebp - 0xc30]
mov ecx, esp
mov dword [ebp - 0xc34], esp
push edx
call fcn.004079b0
lea esi, [ebp - 0xc34]
call fcn.0044a880
mov eax, dword [eax]
add esp, 4
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push 0x5ab228
push edx
call fcn.0054e46c
mov eax, dword [ebp - 0xc34]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0xe4]
push ecx
sub eax, 0x10
mov dword [ebp - 0xc34], esp
mov esi, esp
push eax
call fcn.00407af0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0xc34]
call fcn.0044a880
mov ecx, dword [eax]
add esp, 4
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x628]
push 0x5ab228
push eax
call fcn.0054e46c
mov eax, dword [ebp - 0xc34]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ad0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x200
lea ecx, [ebp - 0xc30]
push ecx
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0xc30]
push eax
call esi
test eax, eax
je 0x408c59
mov eax, dword [edi + 0xe4]
push 0
lea ecx, [ebp - 0x628]
push ecx
push eax
call esi
test eax, eax
je 0x408c59
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408b34
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xc34], eax
xor eax, eax
push 0x40
push eax
lea ecx, [ebp - 0xc8c]
mov edi, 1
mov dword [ebp - 4], edi
push ecx
mov dword [ebp - 0xc44], 0
mov dword [ebp - 0xc40], eax
mov dword [ebp - 0xc3c], eax
mov dword [ebp - 0xc38], eax
call fcn.00550f40
add esp, 0xc
cmp dword [0x5e0bc4], 0
mov dword [ebp - 0xc90], 0x44
mov eax, 0x5ab004
jne 0x408b9b
mov eax, 0x5aaef4
push eax
push 0x5aafd4
lea edx, [ebp - 0x628]
push edx
push 0x5aaff4
lea eax, [ebp - 0xc34]
push str._s___s___s__s
push eax
call fcn.00409220
mov esi, dword [ebp - 0xc34]
add esp, 0x18
cmp dword [esi - 4], edi
jle 0x408be1
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0xc34]
call fcn.004076d0
mov esi, dword [ebp - 0xc34]
lea edx, [ebp - 0xc44]
push edx
lea eax, [ebp - 0xc90]
push eax
lea ecx, [ebp - 0x830]
push ecx
push 0
push 0
push edi
push 0
push 0
push esi
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x408c20
lea edi, [ebp - 0x420]
call fcn.00436830
jmp 0x408c34
push 0x10
push 0x5ab178
push 0x5ab250
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408c82
cmp dword [edi + 0xd4], 0
jne 0x408c76
push 0x10
push 0x5ab178
push 0x5ab1c4
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [edi + 0xec], 1
xor ebx, ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret