Function at 0x406d09
Capabilities:
Delete file
Move file

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4f2720]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x24
mov eax, 0x4bbc6d
call fcn.004603b7
mov eax, dword [ebp + 0x420]
mov edx, dword [ebp + 0x41c]
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
jne 0x406d6e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0045fa14
add ebp, 0x414
leave
ret 8
mov ecx, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x14]
push edx
call fcn.00406a0f
test eax, eax
je 0x406d47
mov ecx, dword [esi + 0x14]
call fcn.00406951
mov ebx, eax
cmp ebx, edi
jne 0x406da0
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x406d47
cmp dword [esi], edi
je 0x406dc0
test eax, eax
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
jge 0x406db4
fadd dword [0x4c47f8]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fidiv dword [esi + 4]
fstp dword [esi + 8]
push 0x206
lea eax, [ebp + 0x20a]
push edi
push eax
mov word [ebp + 0x208], di
call fcn.0045fa70
push dword [ebp - 0x1c]
lea eax, [ebp + 0x208]
push str._s.download
push eax
call fcn.00460936
add esp, 0x18
lea ecx, [ebp - 0x30]
call fcn.0044a382
lea eax, [ebp + 0x208]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x8002
call fcn.00406804
test eax, eax
jne 0x406e1b
mov dword [ebp - 0x10], 0x9002
push edi
push dword [ebp - 0x10]
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x30]
call fcn.0044a7f0
test eax, eax
lea ecx, [ebp - 0x30]
jne 0x406e43
or dword [ebp - 4], 0xffffffff
call fcn.0044a47e
jmp 0x406d47
mov dword [ebp - 0x14], edi
call fcn.0044a275
lea ecx, [ebx + 4]
cmp eax, ecx
jne 0x406e80
xor ecx, ecx
cmp edx, ecx
jne 0x406e80
sub eax, 4
push edi
sbb edx, edi
push edx
push eax
lea ecx, [ebp - 0x30]
call fcn.0044a11b
push 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.0044a090
cmp dword [ebp - 0x14], ebx
jbe 0x406e8f
mov dword [ebp - 0x14], edi
jmp 0x406e8f
xor eax, eax
push eax
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x30]
call fcn.0044a243
cmp dword [esi], edi
je 0x406f29
mov eax, dword [ebp - 0x14]
fild dword [ebp - 0x14]
test eax, eax
jge 0x406ea7
fadd dword [0x4c47f8]
mov eax, ebx
fstp dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
jge 0x406ebc
fadd dword [0x4c47f8]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x10]
fdiv dword [ebp - 0x18]
fmul qword [0x4c47f0]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x10]
fdiv dword [esi + 8]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x18]
call fcn.00460e00
fld dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
call fcn.00460e00
push eax
push ebx
push dword [ebp - 0x14]
lea eax, [ebp]
push 0x4c47c0
push eax
call fcn.00460936
lea eax, [ebp]
push 0x4c47bc
push eax
call fcn.0045fd1a
mov ecx, dword [esi + 0x1c]
add esp, 0x1c
cmp ecx, edi
je 0x406f29
lea eax, [ebp]
push eax
call fcn.00429909
push dword [ebp - 0x18]
mov ecx, dword [esi + 0x1c]
call fcn.00429909
push dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
call fcn.00406b21
test eax, eax
lea ecx, [ebp - 0x30]
jne 0x406f64
call fcn.0044a320
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0044a47e
mov eax, edi
jmp 0x406d49
push edi
push ebx
call fcn.0044a243
lea ecx, [ebp - 0x30]
call fcn.0044a320
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x1c]
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, eax
jmp 0x406f51