Function at 0x49df60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55833b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0
call fcn.004092a0
test eax, eax
je 0x49e477
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
call fcn.004092a0
test eax, eax
je 0x49e477
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
call fcn.004092a0
test eax, eax
je 0x49e477
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 [edi + 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ac4c0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00477830
mov esi, dword [ebp - 0x24]
cmp dword [esi - 0xc], 0
jl 0x49e05c
push str.__
push esi
call fcn.0051f31f
add esp, 8
test eax, eax
je 0x49e05c
sub eax, esi
sar eax, 1
jne 0x49e05c
lea edx, [esi + 8]
test edx, edx
jne 0x49e039
xor ecx, ecx
jmp 0x49e052
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49e040
sub ecx, edi
mov edi, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00408e30
push dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.0048fa70
mov byte [ebp - 4], 7
mov edx, eax
push 0x583bdc
lea ecx, [ebp - 0x14]
call fcn.0047b9c0
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 0x49e0a1
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.00492340
add esp, 4
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x49e0c7
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x49e0db
call fcn.004092a0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x49e477
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0xc]
mov edx, dword [ebp - 0x14]
push 0x13
push str.instname_target.msi
mov dword [ebp - 0x10], 2
push dword [edx - 0xc]
call fcn.0047ba90
add esp, 0xc
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [edi + 0x24]
call fcn.00477830
mov edi, 2
mov dword [ebp - 0x10], edi
and edi, 0xfffffffd
mov dword [ebp - 0x10], edi
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 0x49e143
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x49e15a
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x49e16e
call fcn.004092a0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x49e477
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xe
or edi, 4
mov dword [ebp - 0x10], edi
lea ecx, [ebp + 0xc]
mov edx, dword [ebp - 0x14]
push 0x13
push str.instname_custom.mst
push dword [edx - 0xc]
call fcn.0047ba90
mov eax, dword [ebp - 0x18]
lea ecx, [ebp + 0xc]
add esp, 0xc
add eax, 0x28
mov dword [ebp - 0x2c], eax
push ecx
mov ecx, eax
call fcn.00477830
and edi, 0xfffffffb
mov dword [ebp - 0x10], edi
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 0x49e1d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
push 0
push dword [eax + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x49e294
call fcn.004092a0
test eax, eax
je 0x49e477
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 eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
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 0x49e236
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49e251
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x49e26c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x49e460
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49e460
call fcn.004092a0
test eax, eax
je 0x49e477
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x16
mov eax, 0x5822b8
lea ecx, [ebp - 0x20]
test eax, 0xffff0000
jne 0x49e2cc
movzx eax, ax
push eax
call fcn.00415230
jmp 0x49e2d8
push 0xb
push 0x5822b8
call fcn.00408e30
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ecx + 0x24]
push eax
call fcn.0049ee70
mov byte [ebp + 0xf], al
mov byte [ebp - 4], 9
mov ecx, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x49e314
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp + 0xf]
test al, al
je 0x49e3cb
call fcn.004092a0
test eax, eax
je 0x49e477
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x19
mov eax, str.AI_PRODUCTNAME_ARP
lea ecx, [ebp + 0xc]
test eax, 0xffff0000
jne 0x49e354
movzx eax, ax
push eax
call fcn.00415230
jmp 0x49e360
push 0x12
push str.AI_PRODUCTNAME_ARP
call fcn.00408e30
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ecx + 0x24]
push eax
call fcn.0049ee70
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 0x49e396
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, 0x24
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0049ebe0
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 0x49e3cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
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 0x49e40b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49e426
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x49e441
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x49e460
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.00408f80
int3