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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47226f
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4a6024]
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 - 0x280], edx
mov edi, ecx
mov dword [ebp - 0x26c], edi
mov ecx, dword [ebp + 8]
mov eax, edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x268], 0
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x274], esi
jb 0x4040d7
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 0x40411e
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x268], 1
jmp 0x404745
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404127
sub ecx, edx
mov dword [ebp - 0x230], 0
xor eax, eax
sar ecx, 1
mov dword [ebp - 0x220], 0
push ecx
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
mov dword [ebp - 0x21c], 7
call fcn.004034a0
test esi, esi
je 0x40468e
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 - 0x278], esp
push eax
call fcn.00401e00
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00406400
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.00406860
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x40421c
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404212
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404767
push ecx
push edx
call fcn.00452877
add esp, 8
mov esi, dword [ebp - 0x274]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404270
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.004034a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
cmovae ecx, dword [ebp - 0x260]
setae dl
cmp word [ecx], 0x2e
jne 0x4042fd
mov esi, dword [ebp - 0x250]
mov ecx, 1
test dl, dl
je 0x4042cf
xor edx, edx
mov eax, esi
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp - 0x260]
jmp 0x4042dd
xor edx, edx
lea eax, [ebp - 0x260]
cmp esi, 1
cmovb ecx, esi
sub esi, ecx
lea edx, [eax + edx*2]
lea ecx, [edx + ecx*2]
mov dword [ebp - 0x250], esi
lea eax, [esi*2 + 2]
push eax
push ecx
push edx
call fcn.004546c0
add esp, 0xc
mov esi, dword [ebp - 0x238]
mov ecx, esi
mov edx, dword [ebp - 0x248]
test ecx, ecx
je 0x404366
dec ecx
cmp ecx, 0xffffffff
je 0x4043a9
cmp dword [ebp - 0x234], 8
setae byte [ebp - 0x261]
nop word [eax + eax]
cmp byte [ebp - 0x261], 0
lea eax, [ebp - 0x248]
cmovne eax, edx
cmp word [eax + ecx*2], 0x5c
je 0x4043a9
cmp byte [ebp - 0x261], 0
lea eax, [ebp - 0x248]
cmovne eax, edx
cmp word [eax + ecx*2], 0x2e
je 0x404366
dec ecx
cmp ecx, 0xffffffff
jne 0x404330
jmp 0x4043a9
cmp ecx, 0xffffffff
je 0x4043a9
cmp ecx, esi
ja 0x40438d
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov dword [ebp - 0x238], ecx
cmovae eax, edx
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x40439d
sub ecx, esi
push 0
push ecx
lea ecx, [ebp - 0x248]
call fcn.00402000
mov edx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x234]
cmp esi, ecx
jae 0x4043d1
lea eax, [esi + 1]
cmp ecx, 8
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x248]
cmovae eax, edx
mov dword [eax + esi*2], 0x2e
jmp 0x4043e6
push 0x2e
push dword [ebp - 0x284]
lea ecx, [ebp - 0x248]
push 1
call fcn.004022a0
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x260]
mov esi, dword [ebp - 0x238]
cmovae ecx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x234]
mov edx, dword [ebp - 0x250]
sub eax, esi
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x270], esi
cmp edx, eax
ja 0x404471
cmp dword [ebp - 0x234], 8
lea eax, [esi + edx]
mov dword [ebp - 0x238], eax
lea esi, [ebp - 0x248]
cmovae esi, dword [ebp - 0x248]
mov eax, dword [ebp - 0x270]
lea ecx, [esi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x278]
push ecx
call fcn.004546c0
mov eax, dword [ebp - 0x26c]
add esp, 0xc
add eax, dword [ebp - 0x270]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x404485
push edx
push ecx
push dword [ebp - 0x284]
lea ecx, [ebp - 0x248]
push edx
call fcn.004025a0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.004061b0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x4044a3
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.00403cb0
test esi, esi
jne 0x4045c4
push dword [ebp - 0x274]
mov edx, dword [ebp - 0x280]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x27c]
call fcn.00404070
add esp, 8
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
movups xmm0, xmmword [ebp - 0x230]
mov dword [edi], esi
xor eax, eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
movups xmmword [edi], xmm0
mov word [ebp - 0x230], ax
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 - 0x268], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x230]
call fcn.00403cb0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
jb 0x404594
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40458a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404762
push ecx
push edx
call fcn.00452877
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x248]
call fcn.00403cb0
jmp 0x404745
movups xmm0, xmmword [ebp - 0x248]
mov dword [edi], 0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x248], ax
movq xmm0, qword [ebp - 0x238]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov byte [ebp - 4], 9
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
jb 0x40465e
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404654
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404767
push ecx
push edx
call fcn.00452877
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x248]
call fcn.00403cb0
jmp 0x404745
mov dword [ebp - 4], 0x16
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x280], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x27c], esp
push eax
call fcn.00401e00
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.00406400
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.00406860
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x404728
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40471e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40476c
push ecx
push edx
call fcn.00452877
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.00452869
mov esp, ebp
pop ebp
ret
call fcn.00457a3f
call fcn.00457a3f
call fcn.00457a3f
int3