Function at 0x489bd0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5044fa
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x450]
mov eax, dword [esp + 0x458]
mov ebp, dword [esp + 0x454]
xor edi, edi
push ebx
mov ecx, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [eax], edi
call fcn.00489870
add esp, 4
test eax, eax
jne 0x489d27
mov eax, dword [ebp]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x48a01b
cmp dword [esp + 0x45c], edi
jne 0x489d41
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push 0x107
push eax
mov dword [esp + 0x450], edi
call fcn.00433510
mov byte [esp + 0x450], 1
mov ecx, dword [ebp]
mov eax, dword [eax]
push ecx
push eax
lea edi, [esp + 0x24]
call fcn.00404890
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x489cd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x18]
call fcn.00401140
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push 0x24
push ecx
push ebx
call fcn.00488c60
add esp, 0xc
cmp eax, 7
mov eax, dword [esp + 0x18]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x489d1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
test bl, bl
je 0x489d31
call fcn.004016f0
mov eax, 1
jmp 0x48a2f9
mov dword [esp + 0x448], 0xffffffff
call fcn.004016f0
mov eax, dword [ebp]
sub eax, 0x10
call fcn.004048c0
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x448], 2
cmp dword [ebx - 0xc], 0xf8
jl 0x489d75
lea ecx, [esp + 0x14]
push ecx
call fcn.0041e5f0
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x489e0f
mov eax, dword [ebp]
sub eax, 0x10
call fcn.004048c0
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, str._fab922a8_736e_4cb5_a666_4fd849a3049a.txt
lea edi, [esp + 0x18]
mov byte [esp + 0x448], 3
call fcn.0041d550
mov esi, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x489de9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x1c], 0
lea eax, [esi - 0x10]
mov byte [esp + 0x448], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x489e19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x489e19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x448], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489e40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x1c], 0
je 0x48a2f7
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov eax, 5
mov dword [esp + 0x448], eax
cmp dword [esp + 0x28], eax
jne 0x48a1b6
call fcn.004177c0
test eax, eax
je 0x48a1b6
mov esi, dword [0x565348]
cmp dword [esi - 0xc], 0
je 0x48a0dc
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x36]
push edx
mov word [esp + 0x38], cx
call fcn.004e8fe0
add esp, 0xc
cmp dword [esi - 0xc], 0
jl 0x48a0dc
push 0x515a50
push esi
call fcn.004e4d6c
add esp, 8
test eax, eax
je 0x48a0dc
sub eax, dword [0x565348]
sar eax, 1
cmp eax, 0xffffffff
je 0x48a0dc
push 0x565348
lea ecx, [esp + 0x18]
call fcn.0041ce10
lea eax, [esp + 0x14]
push eax
mov ecx, 0x517384
mov byte [esp + 0x44c], 6
call fcn.00404370
test eax, eax
je 0x489fc8
lea ecx, [esp + 0x14]
push ecx
mov ecx, str._lar
call fcn.00404370
test eax, eax
je 0x489fc8
lea edx, [esp + 0x14]
push edx
mov ecx, str._lai
call fcn.00404370
test eax, eax
je 0x489fc8
lea eax, [esp + 0x14]
push eax
mov ecx, 0x51738c
call fcn.00404370
test eax, eax
je 0x489fc8
lea ecx, [esp + 0x14]
push ecx
mov ecx, str._lae
call fcn.00404370
test eax, eax
je 0x489fc8
lea edx, [esp + 0x14]
push edx
mov ecx, 0x517394
call fcn.00404370
test eax, eax
je 0x489fc8
lea eax, [esp + 0x14]
push eax
mov ecx, 0x517290
call fcn.00404370
test eax, eax
je 0x489fc8
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x51739c
call fcn.00404370
test eax, eax
je 0x489fc8
lea edx, [esp + 0x14]
push edx
mov ecx, 0x517298
call fcn.00404370
test eax, eax
je 0x489fc8
lea eax, [esp + 0x14]
push eax
mov ecx, str._lsd
call fcn.00404370
test eax, eax
jne 0x48a0cb
mov ecx, dword [esp + 0x20]
mov dword [ecx], 1
mov esi, dword [0x565348]
lea eax, [esp + 0x2c]
mov ecx, eax
mov edx, 0x208
sub esi, ecx
jmp 0x489ff0
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x48a0b6
movzx ecx, word [eax + esi]
test cx, cx
je 0x48a0b6
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x489ff0
jmp 0x48a0ba
mov eax, dword [ebp]
sub eax, 0x10
call fcn.004048c0
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x29
push str._fab922a8_736e_4cb5_a666_4fd849a3049a.txt
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x454], 4
call fcn.0041e520
mov esi, dword [esp + 0x18]
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x48a07c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x1c], edi
jmp 0x48a086
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
lea eax, [esi - 0x10]
mov dword [esp + 0x448], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x489e44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x489e44
test edx, edx
jne 0x48a0bd
sub eax, 2
xor edx, edx
lea esi, [esp + 0x2c]
mov word [eax], dx
call fcn.0047f7e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 5
call fcn.004016f0
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
jne 0x48a2c9
lea ecx, [esp + 0x18]
push 0x108
push ecx
call fcn.00433510
mov esi, eax
lea edx, [esp + 0x28]
push 0x109
push edx
mov byte [esp + 0x458], 7
call fcn.00433510
mov byte [esp + 0x458], 8
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [eax]
push ecx
push edx
push eax
push str._s___s__n_n_s
lea edi, [esp + 0x3c]
call fcn.00404890
add esp, 0x20
lea ecx, [esp + 0x20]
call fcn.004016f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x448], 5
call fcn.004016f0
lea esi, [esp + 0x24]
call fcn.00401140
mov esi, eax
lea ecx, [esp + 0x18]
push 0x106
push ecx
mov byte [esp + 0x450], 9
call fcn.00433510
push esi
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x45c], 0xa
call fcn.0041d700
mov edi, dword [esp + 0x30]
mov eax, dword [eax]
push 0x40
push edi
push ebx
call fcn.00488c60
add esp, 0x20
lea ecx, [esp + 0x20]
call fcn.004016f0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x24]
call fcn.004016f0
jmp 0x48a2c9
lea eax, [esp + 0x20]
push 0x109
push eax
call fcn.00433510
mov byte [esp + 0x450], 0xb
mov ecx, dword [ebp]
mov edx, dword [eax]
push ecx
push edx
push str._s___s_
lea edi, [esp + 0x30]
call fcn.00404890
mov byte [esp + 0x45c], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a20d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x14]
call fcn.00401140
mov esi, eax
lea ecx, [esp + 0x28]
push 0x106
mov bl, 0xc
push ecx
mov byte [esp + 0x450], bl
call fcn.00433510
push esi
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x45c], 0xd
call fcn.0041d700
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax]
push 0x40
push edi
push ecx
call fcn.00488c60
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x20
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48a27a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x448], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a2a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x448], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a2c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x448], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a2f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x48a2f9
xor eax, eax
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004e3edb
add esp, 0x438
ret