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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495fbf
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4da064]
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 0x40589d
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 0x4058dc
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 0x405d1f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4058e5
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.004034e0
test esi, esi
je 0x405cb6
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.00404500
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0041f240
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.0041f520
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.00403630
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 0x4059d7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.004034e0
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 0x405a7a
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.00477ce0
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 0x405af6
dec ecx
cmp ecx, 0xffffffff
je 0x405b1d
cmp edx, 8
lea eax, [ebp - 0x248]
cmovae eax, esi
cmp word [eax + ecx*2], 0x5c
je 0x405ace
cmp edx, 8
lea eax, [ebp - 0x248]
cmovae eax, esi
cmp word [eax + ecx*2], 0x2e
je 0x405af6
dec ecx
cmp ecx, 0xffffffff
jne 0x405aa2
mov ecx, dword [ebp - 0x264]
cmp ecx, edx
jae 0x405b21
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 0x405b3c
cmp ecx, 0xffffffff
je 0x405ace
push 0
push ecx
lea ecx, [ebp - 0x248]
call fcn.00404470
mov edx, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
mov esi, dword [ebp - 0x248]
jmp 0x405ad4
mov ecx, eax
jmp 0x405ad4
push 0x2e
mov byte [ebp - 0x264], 0
push dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x248]
call fcn.004048a0
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.00404670
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.0041f060
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x405b80
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.00403630
test esi, esi
jne 0x405c48
push dword [ebp - 0x26c]
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x274]
call fcn.00405830
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.00403630
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x260]
call fcn.00403630
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x248]
jmp 0x405d1a
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.00403630
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
jmp 0x405d1a
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.00404500
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.0041f240
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.0041f520
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x268], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00403630
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.0047615e
mov esp, ebp
pop ebp
ret