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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100375cf
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x10059024]
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 0x1000408d
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 0x100040cc
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 0x1000450f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100040d5
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.10002c30
test esi, esi
je 0x100044a6
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.10001620
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.10007fb0
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.10008280
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.10002db0
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 0x100041c7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.10002c30
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 0x1000426a
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.100264c0
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 0x100042e6
dec ecx
cmp ecx, 0xffffffff
je 0x1000430d
cmp edx, 8
lea eax, [ebp - 0x248]
cmovae eax, esi
cmp word [eax + ecx*2], 0x5c
je 0x100042be
cmp edx, 8
lea eax, [ebp - 0x248]
cmovae eax, esi
cmp word [eax + ecx*2], 0x2e
je 0x100042e6
dec ecx
cmp ecx, 0xffffffff
jne 0x10004292
mov ecx, dword [ebp - 0x264]
cmp ecx, edx
jae 0x10004311
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 0x1000432c
cmp ecx, 0xffffffff
je 0x100042be
push 0
push ecx
lea ecx, [ebp - 0x248]
call fcn.10001590
mov edx, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
mov esi, dword [ebp - 0x248]
jmp 0x100042c4
mov ecx, eax
jmp 0x100042c4
push 0x2e
mov byte [ebp - 0x264], 0
push dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x248]
call fcn.10003bf0
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.10001820
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.10007dd0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x10004370
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.10002db0
test esi, esi
jne 0x10004438
push dword [ebp - 0x26c]
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x274]
call fcn.10004020
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.10002db0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x260]
call fcn.10002db0
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x248]
jmp 0x1000450a
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.10002db0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
jmp 0x1000450a
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.10001620
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.10007fb0
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.10008280
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10002db0
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.10024a34
mov esp, ebp
pop ebp
ret