Function at 0x407540
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff05f
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x569080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x278], edx
mov edi, ecx
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], edi
mov ecx, dword [ebp + 8]
mov eax, edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x264], 0
cmp dword [edx + 0x14], 7
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x268], esi
jbe 0x4075ad
mov eax, dword [edx]
lea edx, [ebp - 0x218]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4075f5
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x264], 1
jmp 0x407b41
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407600
sub ecx, edx
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x230]
push eax
movups xmmword [ebp - 0x230], xmm0
call fcn.00403f80
test esi, esi
je 0x407a8a
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x26c], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x27c], esp
push eax
call fcn.004049c0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00423ef0
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.004242a0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x4076dc
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4076d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b63
push ecx
push edx
call fcn.004d4054
add esp, 8
mov edx, dword [ebp - 0x268]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x220], 0
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
movups xmmword [ebp - 0x248], xmm0
mov dword [ebp - 0x238], eax
lea esi, [ecx + 2]
mov dword [ebp - 0x234], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407720
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00403f80
mov byte [ebp - 4], 9
lea eax, [ebp - 0x248]
mov edx, dword [ebp - 0x234]
cmp edx, 7
mov ecx, dword [ebp - 0x248]
cmova eax, ecx
cmp word [eax], 0x2e
jne 0x4077c5
mov esi, dword [ebp - 0x238]
lea edi, [ebp - 0x248]
cmp edx, 7
lea eax, [ebp - 0x248]
cmova eax, ecx
cmova edi, ecx
sub edi, eax
mov ecx, 1
sar edi, 1
mov eax, esi
sub eax, edi
cmp eax, ecx
cmovb ecx, eax
cmp edx, 7
lea eax, [ebp - 0x248]
cmova eax, dword [ebp - 0x248]
sub esi, ecx
lea edx, [eax + edi*2]
mov eax, esi
sub eax, edi
lea ecx, [edx + ecx*2]
lea eax, [eax*2 + 2]
push eax
push ecx
push edx
call fcn.004d5880
mov edi, dword [ebp - 0x270]
add esp, 0xc
mov dword [ebp - 0x238], esi
mov eax, dword [ebp - 0x250]
mov ecx, eax
mov edx, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x260]
test ecx, ecx
je 0x407817
dec ecx
cmp ecx, 0xffffffff
je 0x40784a
cmp edx, 7
lea eax, [ebp - 0x260]
cmova eax, esi
cmp word [eax + ecx*2], 0x5c
je 0x40784a
cmp edx, 7
lea eax, [ebp - 0x260]
cmova eax, esi
cmp word [eax + ecx*2], 0x2e
je 0x407811
dec ecx
cmp ecx, 0xffffffff
jne 0x4077e3
jmp 0x40784a
mov eax, dword [ebp - 0x250]
cmp ecx, 0xffffffff
je 0x40784a
cmp ecx, eax
ja 0x40783a
cmp edx, 7
mov dword [ebp - 0x250], ecx
lea eax, [ebp - 0x260]
cmova eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x40784a
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x260]
call fcn.00405890
push 0x2e
lea ecx, [ebp - 0x260]
call fcn.00405660
cmp dword [ebp - 0x234], 7
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmova eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x260]
push eax
call fcn.00405900
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.00423c20
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 7
jbe 0x40789b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x230]
call fcn.00404130
test esi, esi
jne 0x4079c0
push dword [ebp - 0x268]
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x274]
call fcn.00407540
add esp, 8
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], esi
movups xmm0, xmmword [ebp - 0x230]
mov dword [edi + 0x14], esi
mov word [ebp - 0x230], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 7
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x264], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x230]
call fcn.00404130
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x234]
cmp ecx, 7
jbe 0x407990
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407986
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b5e
push ecx
push edx
call fcn.004d4054
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x260]
call fcn.00404130
jmp 0x407b41
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x260]
mov dword [edi + 0x14], 0
mov word [ebp - 0x260], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x250]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov byte [ebp - 4], 9
mov dword [ebp - 0x264], 1
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x234]
cmp ecx, 7
jbe 0x407a5a
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407a50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b63
push ecx
push edx
call fcn.004d4054
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x260]
call fcn.00404130
jmp 0x407b41
mov dword [ebp - 4], 0x16
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x27c], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x26c], esp
push eax
call fcn.004049c0
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.00423ef0
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.004242a0
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x264], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x407b24
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407b1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b68
push ecx
push edx
call fcn.004d4054
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3ce9
mov esp, ebp
pop ebp
ret
call fcn.004d91af
call fcn.004d91af
call fcn.004d91af
int3