Function at 0x4fb990
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x54f858
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp + 0x78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp + 0x84]
lea ecx, [ebp + 0x48]
mov edi, dword [ebp + 0x88]
xor eax, eax
push 8
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
push str.download
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
call fcn.00418830
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x48]
lea eax, [esi + 4]
push ecx
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x18]
push eax
call fcn.0041e580
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x48]
call fcn.004184d0
lea eax, [ebp + 0x18]
push eax
call fcn.0041edc0
add esp, 4
test al, al
jne 0x4fba56
lea eax, [ebp + 0x18]
push eax
call fcn.00420860
add esp, 4
test al, al
jne 0x4fba56
xor bl, bl
jmp 0x4fbc2c
xor eax, eax
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
mov byte [ebp - 4], 3
xor ecx, ecx
mov esi, dword [ebx]
mov eax, 0x2aaaaaab
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 4]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4fbbae
xor ebx, ebx
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 0
add esi, ebx
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
mov byte [ebp - 4], 4
lea eax, [ebp + 0x60]
push eax
push esi
call fcn.00420910
add esp, 8
test al, al
je 0x4fbc68
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.0041e580
add esp, 0xc
mov byte [ebp - 4], 5
lea eax, [ebp + 0x30]
cmp dword [ebp + 0x44], 8
cmovae eax, dword [ebp + 0x30]
cmp dword [esi + 0x14], 8
jb 0x4fbb18
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4fbc5c
mov eax, dword [edi + 4]
lea ecx, [ebp + 0x30]
push ecx
cmp dword [edi + 8], eax
je 0x4fbb43
mov ecx, eax
call fcn.0041c4f0
add dword [edi + 4], 0x18
jmp 0x4fbb4b
push eax
mov ecx, edi
call fcn.004235f0
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
push dword [ebp + 0x40]
cmovae eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x48]
push eax
call fcn.0041c6a0
push 0x3b
lea ecx, [ebp + 0x48]
call fcn.00418420
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x30]
call fcn.004184d0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x60]
call fcn.004184d0
mov eax, dword [ebp - 0x14]
add ebx, 0x18
inc dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x10], eax
jb 0x4fbab0
push 0xc
xor eax, eax
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 0
lea ecx, [ebp + 0x60]
push str.download.hzt
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
call fcn.00418830
mov byte [ebp - 4], 6
lea eax, [ebp + 0x60]
push eax
push dword [ebp - 0x18]
lea eax, [ebp]
push eax
call fcn.0041e580
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x60]
call fcn.004184d0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.004fde90
mov bl, 1
mov byte [ebp - 4], 3
lea ecx, [ebp]
call fcn.004184d0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x48]
call fcn.004184d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.004184d0
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 + 0x78]
xor ecx, ebp
call fcn.0050b0b7
lea esp, [ebp + 0x7c]
pop ebp
ret 8
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x30]
call fcn.004184d0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x60]
call fcn.004184d0
xor bl, bl
jmp 0x4fbc20