Function at 0x404870
Capabilities:
Create bits job
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427c64
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x438130]
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
mov edi, ecx
mov eax, dword [0x43a9c4]
test al, 1
jne 0x4048d3
or eax, 1
mov dword [0x43a9c4], eax
mov ecx, 0x43a990
mov dword [ebp - 4], 0
call fcn.004077e0
push 0x429090
call fcn.00418853
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x43a990
call fcn.00408c40
test eax, eax
je 0x4048fc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push str.BitsJob:_RunWorkerThread
push eax
mov dword [ebp - 0x2c], 4
call fcn.00407b90
add esp, 8
mov dword [ebp - 0x5c], 0
mov eax, dword [edi + 0x38]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 1
call fcn.00402800
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00404520
test esi, esi
js 0x404f0d
cmp dword [ebp - 0x5c], 0
jne 0x404997
mov eax, dword [0x43a9c4]
test al, 1
jne 0x404964
or eax, 1
mov dword [0x43a9c4], eax
mov ecx, 0x43a990
mov byte [ebp - 4], 2
call fcn.004077e0
push 0x429090
call fcn.00418853
add esp, 4
mov byte [ebp - 4], 1
mov ecx, 0x43a990
call fcn.00408c40
test eax, eax
je 0x40498d
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push str.BitsJob:_failed_to_get_job_interface_pointer
push eax
mov dword [ebp - 0x2c], 0xfffffffe
call fcn.00407b90
add esp, 8
mov esi, 0x80004003
jmp 0x404f0d
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4049b3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4049b3
lea esi, [eax + 1]
jmp 0x404f0d
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00402b00
mov esi, eax
test esi, esi
js 0x404efc
cmp dword [ebp - 0x44], 0
je 0x404a2b
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x404a04
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push str.BitsJob:_ERROR:_job_already_exists.
push eax
mov dword [ebp - 0x2c], 0xfffffffe
call fcn.00407b90
add esp, 8
push dword [0x43acc0]
push 0
push 0x42d824
push 0
push 0
push 0x202
push 0x42a468
call fcn.00401fb0
mov esi, eax
jmp 0x404efc
mov ecx, edi
call fcn.00403e70
test al, al
je 0x404a40
mov esi, 1
jmp 0x404efc
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x18], xmm0
call fcn.00417db0
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.00401510
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push str._d._d._d._d
push eax
call fcn.00403470
add esp, 0x18
lea ecx, [ebp - 0x58]
call fcn.00401510
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.004035f0
mov esi, eax
test esi, esi
js 0x404eec
mov eax, dword [ebp - 0x58]
cmp dword [eax - 0xc], 0
jle 0x404af0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401380
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 6
push 0x42a848
push eax
call fcn.00401a90
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
push dword [eax - 0xc]
push eax
call fcn.00401da0
lea ecx, [ebp - 0x38]
call fcn.00401750
lea ecx, [ebp - 0x2c]
call fcn.00401750
mov ecx, edi
call fcn.00403e70
test al, al
je 0x404b05
mov esi, 1
jmp 0x404eec
lea ecx, [ebp - 0x50]
call fcn.00401510
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 8
mov dword [ebp - 0x34], eax
mov esi, 1
mov eax, dword [ebp - 0x50]
mov edx, esi
mov dword [ebp - 0x2c], 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x404b48
push 0x104
lea ecx, [ebp - 0x50]
call fcn.004041f0
mov eax, dword [ebp - 0x50]
push eax
push 0x104
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
lea ecx, [ebp - 0x34]
sete bl
call fcn.00401700
test bl, bl
je 0x404ba4
call fcn.00401f80
mov esi, eax
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x404ee4
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push str.BitsJob:_failed_to_GetTempPath__0x_x_
push eax
mov dword [ebp - 0x2c], 0xfffffffe
call fcn.00407b90
add esp, 0xc
jmp 0x404ee4
mov ecx, edi
call fcn.00403e70
test al, al
jne 0x404ee4
lea ecx, [ebp - 0x48]
call fcn.00401510
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 9
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], 0xffffffff
mov ecx, dword [eax - 8]
sub esi, dword [eax - 4]
sub ecx, 0x104
or ecx, esi
jge 0x404bef
push 0x104
lea ecx, [ebp - 0x48]
call fcn.004041f0
mov eax, dword [ebp - 0x48]
push eax
push 0
push 0x42a89c
push dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
lea ecx, [ebp - 0x34]
sete bl
call fcn.00401700
test bl, bl
je 0x404c50
call fcn.00401f80
mov esi, eax
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x404edc
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push str.BitsJob:_failed_to_GetTempFileName__0x_x_
push eax
mov dword [ebp - 0x2c], 0xfffffffe
call fcn.00407b90
add esp, 0xc
jmp 0x404edc
mov ecx, edi
call fcn.00403e70
test al, al
je 0x404c65
mov esi, 1
jmp 0x404edc
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xa
push eax
push 0x42ae2c
push 4
push 0
push 0x42a8fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x404ecb
mov ecx, edi
call fcn.00403e70
test al, al
je 0x404ca7
mov esi, 1
jmp 0x404ecb
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [eax]
push 0
push str.SkypeUpdate
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
js 0x404ecb
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
mov esi, eax
test esi, esi
je 0x404d22
movdqu xmm0, xmmword [ebp - 0x28]
sub esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
movdqu xmmword [ecx], xmm0
call fcn.00418030
push dword [ebp - 0x48]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 3
push dword [eax]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
push str.BitsJob:_job_created_guid_s_file_s
push eax
call fcn.00407b90
add esp, 0x24
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.00401750
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push str.http:__ui.skype.com_ui_0_
push eax
call fcn.00401a90
push str._en_upgrade
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
push eax
call fcn.004019b0
add esp, 0x18
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.00401750
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x404d84
push dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push str.BitsJob:_Download_URL:__s
push eax
mov dword [ebp - 0x38], 3
call fcn.00407b90
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x4c]
mov ecx, edi
push eax
call fcn.00402e40
test al, al
je 0x404dc9
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x404dc3
push dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push str.BitsJob:_Redirected_to__s
push eax
mov dword [ebp - 0x38], 3
call fcn.00407b90
add esp, 0xc
inc esi
cmp esi, 0xa
jl 0x404d86
push dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x38]
call fcn.004015d0
push dword [eax]
mov ecx, dword [esi]
push dword [ebp - 0x4c]
mov byte [ebp - 4], 0xf
push esi
call dword [ecx + 0x10]
push dword [ebp - 0x38]
mov esi, eax
mov byte [ebp - 4], 0xe
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
js 0x404ec3
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x404e2b
push dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push str.BitsJob:_job_added__s
push eax
mov dword [ebp - 0x38], 4
call fcn.00407b90
add esp, 0xc
mov eax, dword [ebp - 0x44]
push 0x15180
push eax
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov esi, eax
test esi, esi
js 0x404ec3
mov eax, dword [ebp - 0x44]
push 0xe10
push eax
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov esi, eax
test esi, esi
js 0x404ec3
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
js 0x404ec3
call fcn.004037f0
mov ecx, eax
call fcn.00408c40
test eax, eax
je 0x404e91
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push str.BitsJob:_job_resumed
push eax
mov dword [ebp - 0x38], 4
call fcn.00407b90
add esp, 8
movdqu xmm0, xmmword [ebp - 0x28]
sub esp, 0x10
mov ecx, 0x43a934
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.00405230
lea eax, [ebp - 0x48]
mov ecx, 0x43a934
push eax
call fcn.004051c0
mov ecx, 0x43a934
call fcn.00404f40
xor esi, esi
lea ecx, [ebp - 0x4c]
call fcn.00401750
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 9
test eax, eax
je 0x404edc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x48]
call fcn.00401750
lea ecx, [ebp - 0x50]
call fcn.00401750
lea ecx, [ebp - 0x58]
call fcn.00401750
lea ecx, [ebp - 0x40]
call fcn.00401750
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x404f0d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x404f21
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
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.00419146
mov esp, ebp
pop ebp
ret