Function at 0x4f9460
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x5432b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x582184]
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.00404420
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.00407100
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x48]
call fcn.00404370
lea eax, [ebp + 0x18]
push eax
call fcn.00407b80
add esp, 4
test al, al
jne 0x4f9526
lea eax, [ebp + 0x18]
push eax
call fcn.00409b50
add esp, 4
test al, al
jne 0x4f9526
xor bl, bl
jmp 0x4f96fc
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 0x4f967e
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.00409c00
add esp, 8
test al, al
je 0x4f9738
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.00407100
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 0x4f95e8
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4f972c
mov eax, dword [edi + 4]
lea ecx, [ebp + 0x30]
push ecx
cmp dword [edi + 8], eax
je 0x4f9613
mov ecx, eax
call fcn.00405950
add dword [edi + 4], 0x18
jmp 0x4f961b
push eax
mov ecx, edi
call fcn.0040c9a0
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.00407830
push 0x3b
lea ecx, [ebp + 0x48]
call fcn.00406920
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x30]
call fcn.00404370
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x60]
call fcn.00404370
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 0x4f9580
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.00404420
mov byte [ebp - 4], 6
lea eax, [ebp + 0x60]
push eax
push dword [ebp - 0x18]
lea eax, [ebp]
push eax
call fcn.00407100
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x60]
call fcn.00404370
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.004fb960
mov bl, 1
mov byte [ebp - 4], 3
lea ecx, [ebp]
call fcn.00404370
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x48]
call fcn.00404370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.00404370
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.005001f6
lea esp, [ebp + 0x7c]
pop ebp
ret 8
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x30]
call fcn.00404370
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x60]
call fcn.00404370
xor bl, bl
jmp 0x4f96f0