Function at 0x4158d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e28c
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x580280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x474], ecx
mov ecx, dword [ebp - 0x474]
call fcn.00415180
test eax, eax
jne 0x415917
xor eax, eax
jmp 0x415cd3
mov eax, dword [ebp - 0x474]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x474]
mov ecx, dword [edx + 0x18]
call fcn.004161a0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x474]
mov ecx, dword [ecx + 0x18]
call fcn.004163e0
test eax, eax
jne 0x41594c
xor eax, eax
jmp 0x415cd3
mov edx, dword [ebp - 0x474]
mov ecx, dword [edx + 0x18]
call fcn.00416210
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x415986
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
jmp 0x415cd3
mov ecx, dword [ebp - 0x474]
cmp dword [ecx], 0
je 0x4159cb
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x47c], edx
mov dword [ebp - 0x478], 0
fild qword [ebp - 0x47c]
fstp dword [ebp - 0x248]
mov eax, dword [ebp - 0x474]
fild dword [eax + 4]
fdivr dword [ebp - 0x248]
mov ecx, dword [ebp - 0x474]
fstp dword [ecx + 8]
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00486c20
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0x54b2f4
lea edx, [ebp - 0x21c]
push edx
call fcn.00487ebf
add esp, 0xc
lea ecx, [ebp - 0x230]
call fcn.0047bd4a
mov dword [ebp - 4], 0
mov dword [ebp - 0x238], 0x8002
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x474]
call fcn.004152e0
test eax, eax
jne 0x415a46
mov ecx, dword [ebp - 0x238]
or ecx, 0x1000
mov dword [ebp - 0x238], ecx
push 0
mov edx, dword [ebp - 0x238]
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
call fcn.0047c1c2
test eax, eax
jne 0x415a8c
mov dword [ebp - 0x468], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0047be52
mov eax, dword [ebp - 0x468]
jmp 0x415cd3
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x230]
call fcn.0047bc35
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], edx
mov ecx, dword [ebp - 0x220]
add ecx, 4
xor edx, edx
mov dword [ebp - 0x484], ecx
mov dword [ebp - 0x480], edx
mov eax, dword [ebp - 0x244]
cmp eax, dword [ebp - 0x484]
jne 0x415b2f
mov ecx, dword [ebp - 0x240]
cmp ecx, dword [ebp - 0x480]
jne 0x415b2f
push 0
mov edx, dword [ebp - 0x244]
sub edx, 4
mov eax, dword [ebp - 0x240]
sbb eax, 0
push eax
push edx
lea ecx, [ebp - 0x230]
call fcn.0047bacd
push 4
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0047ba3e
mov edx, dword [ebp - 0x234]
cmp edx, dword [ebp - 0x220]
jbe 0x415b2d
mov dword [ebp - 0x234], 0
jmp 0x415b47
mov eax, dword [ebp - 0x220]
add eax, 4
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0047bbff
mov edx, dword [ebp - 0x474]
cmp dword [edx], 0
je 0x415c1a
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x488], 0
fild qword [ebp - 0x48c]
fstp dword [ebp - 0x254]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x494], ecx
mov dword [ebp - 0x490], 0
fild qword [ebp - 0x494]
fstp dword [ebp - 0x464]
fld dword [ebp - 0x254]
fdiv dword [ebp - 0x464]
fmul qword [0x54b3f8]
fstp dword [ebp - 0x250]
fld dword [ebp - 0x254]
mov edx, dword [ebp - 0x474]
fdiv dword [edx + 8]
fstp dword [ebp - 0x24c]
fld dword [ebp - 0x24c]
call fcn.00487bc0
mov dword [ebp - 0x460], eax
fld dword [ebp - 0x250]
call fcn.00487bc0
push eax
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
push 0x54b30c
lea edx, [ebp - 0x45c]
push edx
call fcn.00487ebf
add esp, 0x14
push 0x54b33c
lea eax, [ebp - 0x45c]
push eax
call fcn.00486ab7
add esp, 8
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x474]
call fcn.00415460
test eax, eax
jne 0x415c7a
lea ecx, [ebp - 0x230]
call fcn.0047bce4
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x46c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0047be52
mov eax, dword [ebp - 0x46c]
jmp 0x415cd3
mov edx, dword [ebp - 0x220]
xor eax, eax
push eax
push edx
lea ecx, [ebp - 0x230]
call fcn.0047bbff
lea ecx, [ebp - 0x230]
call fcn.0047bce4
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x470], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0047be52
mov eax, dword [ebp - 0x470]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00486c08
mov esp, ebp
pop ebp
ret 8