Function at 0x4a6ab0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c60e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], 0
call fcn.00409d30
test eax, eax
je 0x4a6f17
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 2
call fcn.00409d30
test eax, eax
je 0x4a6f17
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
call fcn.00409d30
test eax, eax
je 0x4a6f17
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x24]
mov ecx, dword [esi + 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004b4ea0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0047f480
mov edi, dword [ebp - 0x24]
cmp dword [edi - 0xc], 0
jl 0x4a6bac
push 0x5a0aa8
push edi
call fcn.0052f72c
add esp, 8
test eax, eax
je 0x4a6bac
sub eax, edi
sar eax, 1
jne 0x4a6bac
lea edx, [edi + 8]
test edx, edx
jne 0x4a6b89
xor ecx, ecx
jmp 0x4a6ba2
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6b90
sub ecx, esi
mov esi, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.004098b0
push dword [ebp + 0xc]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.004980a0
mov byte [ebp - 4], 7
mov edx, eax
push 0x59a78c
lea ecx, [ebp - 0x14]
call fcn.004836a0
add esp, 8
mov byte [ebp - 4], 9
or ebx, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6bf1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
mov dl, 1
lea ecx, [ebp - 0x14]
call fcn.0049a9e0
push str.instname_target.msi
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0xc]
call fcn.004836a0
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x24]
push eax
call fcn.0047f480
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 0x4a6c3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.instname_custom.mst
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0xc]
call fcn.004836a0
add esp, 4
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x20]
add ecx, 0x28
push eax
mov dword [ebp - 0x28], ecx
call fcn.0047f480
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 0x4a6c7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esi + 0x24]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a6d39
call fcn.00409d30
test eax, eax
je 0x4a6f17
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6cdb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a6cf6
mov ecx, dword [edi]
push edi
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 0x4a6d11
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a6f00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a6f00
call fcn.00409d30
test eax, eax
je 0x4a6f17
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x14
mov eax, 0x598e64
lea ecx, [ebp - 0x1c]
test eax, 0xffff0000
jne 0x4a6d71
movzx eax, ax
push eax
call fcn.00409280
jmp 0x4a6d7d
push 0xb
push 0x598e64
call fcn.004098b0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ecx + 0x24]
push eax
call fcn.004a79d0
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 0x4a6db9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp + 0xf]
test al, al
je 0x4a6e6d
call fcn.00409d30
test eax, eax
je 0x4a6f17
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 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 0x4a6df9
movzx eax, ax
push eax
call fcn.00409280
jmp 0x4a6e05
push 0x12
push str.AI_PRODUCTNAME_ARP
call fcn.004098b0
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
lea esi, [ecx + 0x24]
push esi
call fcn.004a79d0
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 0x4a6e3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004a75d0
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 0x4a6e6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00409540
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6eab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a6ec6
mov ecx, dword [edi]
push edi
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 0x4a6ee1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a6f00
mov ecx, dword [eax]
push eax
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.00409a00
int3