Function at 0x4a0b70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559539
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], 0
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a10a5
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 2
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a10af
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a10b9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x24]
mov ecx, dword [ebx + 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004af690
mov esi, dword [ebp - 0x24]
lea ecx, [edi - 0x10]
or ebx, 0xffffffff
mov dword [ebp - 0x1c], ecx
lea edx, [esi - 0x10]
mov dword [ebp - 0x2c], edx
cmp edx, ecx
je 0x4a0c70
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x4a0c61
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4a0c61
mov ecx, edx
call fcn.0040a1d0
mov dword [ebp - 0x30], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4a0c59
mov edi, dword [ebp - 0x1c]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
jmp 0x4a0c70
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.004126c0
mov edi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jl 0x4a0cbc
push 0x58b0f0
push esi
call fcn.00522cd0
add esp, 8
test eax, eax
je 0x4a0cbc
sub eax, esi
sar eax, 1
jne 0x4a0cbc
add esi, 8
jne 0x4a0c97
xor ecx, ecx
jmp 0x4a0caf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0ca0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.004126c0
mov edi, dword [ebp - 0x14]
push dword [ebp + 0xc]
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.00490be0
mov byte [ebp - 4], 7
mov edx, eax
push 0x584bd8
lea ecx, [ebp - 0x18]
call fcn.0047a940
add esp, 8
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a0cfe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
mov dl, 1
lea ecx, [ebp - 0x18]
call fcn.00494c80
push str.instname_target.msi
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0047a940
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax]
add ecx, 0x24
mov esi, dword [ecx]
lea eax, [edx - 0x10]
sub esi, 0x10
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x4a0d7d
cmp dword [esi + 0xc], 0
jl 0x4a0d74
mov eax, dword [edx - 0x10]
cmp eax, dword [esi]
jne 0x4a0d74
mov ecx, dword [ebp + 0xc]
call fcn.0040a1d0
mov dword [ebp + 0xc], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a0d69
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
add eax, 0x10
mov dword [esi + 0x24], eax
jmp 0x4a0d80
push dword [edx - 0xc]
push edx
call fcn.004126c0
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a0d9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.instname_custom.mst
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0047a940
add esp, 4
mov byte [ebp - 4], 0xd
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4a0e0d
cmp dword [esi + 0xc], 0
jl 0x4a0dfc
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4a0dfc
call fcn.0040a1d0
mov dword [ebp + 0xc], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a0df1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
add eax, 0x10
mov dword [esi + 0x28], eax
jmp 0x4a0e10
mov esi, dword [ebp - 0x10]
push dword [edx - 0xc]
push edx
lea ecx, [esi + 0x28]
call fcn.004126c0
jmp 0x4a0e10
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a0e2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esi + 0x24]
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a0ec5
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a10c3
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a0e8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x2c]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a0ea5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a0ec0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a1072
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a10cd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x14
mov eax, 0x5832fc
lea ecx, [ebp - 0x1c]
test eax, 0xffff0000
jne 0x4a0efd
movzx eax, ax
push eax
call fcn.00412350
jmp 0x4a0f09
push 0xb
push 0x5832fc
call fcn.004126c0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ecx + 0x24]
push eax
call fcn.004a1bc0
mov byte [ebp + 0xf], al
mov byte [ebp - 4], 9
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4a0f45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp + 0xf]
test al, al
je 0x4a0ffd
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a10d7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x17
mov eax, str.AI_PRODUCTNAME_ARP
lea ecx, [ebp + 0xc]
test eax, 0xffff0000
jne 0x4a0f85
movzx eax, ax
push eax
call fcn.00412350
jmp 0x4a0f91
push 0x12
push str.AI_PRODUCTNAME_ARP
call fcn.004126c0
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ecx + 0x24]
push eax
call fcn.004a1bc0
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a0fc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 0x28]
push eax
lea eax, [ecx + 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004a1950
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a0ffd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x28]
sub ecx, 0x10
call fcn.0040a1d0
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a103c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x2c]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1057
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a1072
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a108e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3