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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f1bf
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x478024]
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 - 0x264], edi
mov dword [ebp - 0x270], edi
mov ecx, dword [ebp + 8]
mov eax, edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x268], 0
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x26c], esi
jb 0x402a5d
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 0x402a9c
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
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 0x402edf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402aa5
sub ecx, edx
mov dword [ebp - 0x220], 0
xor eax, eax
sar ecx, 1
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.00401ff0
test esi, esi
je 0x402e76
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x270], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x27c], esp
push eax
call fcn.00401850
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00408350
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.00408640
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.00402680
mov edx, dword [ebp - 0x26c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b97
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.00401ff0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
mov edx, dword [ebp - 0x260]
cmovae eax, edx
cmp word [eax], 0x2e
jne 0x402c3a
mov esi, dword [ebp - 0x250]
lea edi, [ebp - 0x260]
cmp ecx, 8
lea eax, [ebp - 0x260]
cmovae eax, edx
cmovae edi, edx
sub edi, eax
mov edx, 1
sar edi, 1
mov eax, esi
sub eax, edi
cmp eax, edx
cmovb edx, eax
cmp ecx, 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
sub esi, edx
mov dword [ebp - 0x250], esi
sub esi, edi
lea ecx, [eax + edi*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.0043a460
mov edi, dword [ebp - 0x264]
add esp, 0xc
mov eax, dword [ebp - 0x238]
mov ecx, eax
mov edx, dword [ebp - 0x234]
mov esi, dword [ebp - 0x248]
mov dword [ebp - 0x264], eax
test ecx, ecx
je 0x402cb6
dec ecx
cmp ecx, 0xffffffff
je 0x402cdd
cmp edx, 8
lea eax, [ebp - 0x248]
cmovae eax, esi
cmp word [eax + ecx*2], 0x5c
je 0x402c8e
cmp edx, 8
lea eax, [ebp - 0x248]
cmovae eax, esi
cmp word [eax + ecx*2], 0x2e
je 0x402cb6
dec ecx
cmp ecx, 0xffffffff
jne 0x402c62
mov ecx, dword [ebp - 0x264]
cmp ecx, edx
jae 0x402ce1
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x248]
cmovae eax, esi
mov dword [eax + ecx*2], 0x2e
jmp 0x402cfc
cmp ecx, 0xffffffff
je 0x402c8e
push 0
push ecx
lea ecx, [ebp - 0x248]
call fcn.004017c0
mov edx, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
mov esi, dword [ebp - 0x248]
jmp 0x402c94
mov ecx, eax
jmp 0x402c94
push 0x2e
mov byte [ebp - 0x264], 0
push dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00401a10
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x248]
push eax
call fcn.00401990
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.00408170
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x402d40
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.00402680
test esi, esi
jne 0x402e08
push dword [ebp - 0x26c]
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x274]
call fcn.004029f0
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 + 0x10], esi
xor eax, eax
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.00402680
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x260]
call fcn.00402680
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x248]
jmp 0x402eda
movups xmm0, xmmword [ebp - 0x248]
mov dword [edi + 0x10], 0
xor eax, eax
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
lea ecx, [ebp - 0x260]
call fcn.00402680
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
jmp 0x402eda
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 - 0x270], esp
push eax
call fcn.00401850
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.00408350
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.00408640
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402680
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.00438889
mov esp, ebp
pop ebp
ret