Function at 0x4422b0
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446cef
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x4bc
mov eax, dword [0x45c4c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x488], ecx
mov byte [ebp - 0x138], 0
push 0x103
push 0
lea eax, [ebp - 0x137]
push eax
call fcn.00423520
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x138]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 0x488]
mov eax, dword [edx + 0x74]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 0x1b8], 0
push 0x7f
push 0
lea ecx, [ebp - 0x1b7]
push ecx
call fcn.00423520
add esp, 0xc
mov edx, dword [ebp - 0x1bc]
push edx
lea ecx, [ebp - 0x30]
call fcn.00401a00
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x378]
call fcn.004359f0
mov dword [ebp - 0x48c], eax
mov byte [ebp - 4], 2
push 0
push 1
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x378]
call fcn.004355c0
push 0
lea ecx, [ebp - 0x378]
call fcn.00403520
mov dword [ebp - 0x490], eax
mov ecx, dword [ebp - 0x490]
mov dword [ebp - 0x1c8], ecx
push 0x64
push 0
mov ecx, dword [ebp - 0x488]
add ecx, 0x98
call fcn.00404650
push 0
mov ecx, dword [ebp - 0x488]
add ecx, 0x98
call fcn.00404620
push 1
mov ecx, dword [ebp - 0x488]
add ecx, 0x98
call fcn.004045f0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x37c], 0
jmp 0x442410
mov edx, dword [ebp - 0x37c]
add edx, 1
mov dword [ebp - 0x37c], edx
mov eax, dword [ebp - 0x37c]
cmp eax, dword [ebp - 0x1c8]
jge 0x44296f
lea ecx, [ebp - 0x430]
call fcn.00436c80
mov dword [ebp - 0x494], eax
mov byte [ebp - 4], 3
movzx ecx, word [ebp - 0x37c]
push ecx
lea edx, [ebp - 0x430]
push edx
lea ecx, [ebp - 0x378]
call fcn.004350e0
mov byte [ebp - 0x495], al
movzx eax, byte [ebp - 0x495]
cmp eax, 1
je 0x442474
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x430]
call fcn.00436d10
jmp 0x442401
mov ecx, dword [ebp - 0x488]
cmp dword [ecx + 0x90], 0
je 0x4424d2
mov edx, dword [ebp - 0x488]
mov dword [edx + 0x94], 1
mov eax, dword [ebp - 0x488]
mov dword [eax + 0x78], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x430]
call fcn.00436d10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x378]
call fcn.004354c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402ae0
jmp 0x442a33
mov ecx, dword [ebp - 0x488]
add ecx, 0x80
call fcn.004036e0
movzx ecx, al
test ecx, ecx
jne 0x44256e
lea edx, [ebp - 0x474]
push edx
lea ecx, [ebp - 0x430]
call fcn.00437100
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x4a0], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4a0]
push ecx
mov ecx, dword [ebp - 0x488]
call fcn.00441e00
mov dword [ebp - 0x4a4], eax
xor edx, edx
cmp dword [ebp - 0x4a4], 0
sete dl
mov byte [ebp - 0x46d], dl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x474]
call fcn.00401a60
movzx eax, byte [ebp - 0x46d]
test eax, eax
je 0x44256e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x430]
call fcn.00436d10
jmp 0x442401
mov ecx, dword [ebp - 0x1bc]
push ecx
lea ecx, [ebp - 0x3dc]
call fcn.00401a00
mov dword [ebp - 0x4a8], eax
mov byte [ebp - 4], 5
push 0x45171c
lea ecx, [ebp - 0x3dc]
call fcn.004011a0
lea edx, [ebp - 0x478]
push edx
lea ecx, [ebp - 0x430]
call fcn.00437100
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x4b0], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4b0]
call fcn.00401e50
push eax
lea ecx, [ebp - 0x3dc]
call fcn.004011a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x478]
call fcn.00401a60
push 0x80
lea ecx, [ebp - 0x3dc]
call fcn.00401a40
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
lea ecx, [ebp - 0x3dc]
call fcn.00401a40
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3c0], eax
cmp dword [ebp - 0x3c0], 0xffffffff
jne 0x442675
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 2
je 0x442673
cmp dword [ebp - 0x450], 3
je 0x442673
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3dc]
call fcn.00402ae0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x430]
call fcn.00436d10
jmp 0x442401
jmp 0x442682
mov ecx, dword [ebp - 0x3c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c8]
cdq
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x37c]
add eax, 1
cdq
push 0
push 0x64
push edx
push eax
call fcn.00425370
push edi
push esi
push edx
push eax
call fcn.004288a0
mov dword [ebp - 0x3a0], eax
mov edx, dword [ebp - 0x1c0]
cmp edx, dword [ebp - 0x3a0]
je 0x442715
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x3a0]
push ecx
mov ecx, dword [ebp - 0x488]
add ecx, 0x98
call fcn.00404620
mov edx, dword [ebp - 0x3a0]
push edx
push 0x451720
lea eax, [ebp - 0x1b8]
push eax
call fcn.0042141e
add esp, 0xc
lea ecx, [ebp - 0x1b8]
push ecx
push 0x3ea
mov ecx, dword [ebp - 0x488]
call fcn.0040eb42
lea ecx, [ebp - 0x3bc]
call fcn.00403820
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x398]
call fcn.00402c90
mov byte [ebp - 4], 8
lea edx, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x430]
call fcn.00437100
mov dword [ebp - 0x4b4], eax
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x4b8], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x4b8]
call fcn.00401e50
push eax
lea ecx, [ebp - 0x44c]
call fcn.00401a00
mov dword [ebp - 0x4bc], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x47c]
call fcn.00401a60
lea ecx, [ebp - 0x398]
push ecx
lea edx, [ebp - 0x3bc]
push edx
lea eax, [ebp - 0x30]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x480], esp
lea edx, [ebp - 0x44c]
push edx
call fcn.004017b0
mov dword [ebp - 0x4c0], eax
mov ecx, dword [ebp - 0x488]
call fcn.00442090
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp - 0x4c4]
mov dword [ebp - 0x39c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
sub ecx, dword [ebp - 0x1cc]
cmp ecx, 0x3e8
jb 0x44287d
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1cc], edx
cmp dword [ebp - 0x39c], 0
je 0x44282a
lea ecx, [ebp - 0x398]
call fcn.00401a40
push eax
push 0x3e9
mov ecx, dword [ebp - 0x488]
call fcn.0040eb42
jmp 0x44287d
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x430]
call fcn.00437100
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4cc], ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4cc]
call fcn.00401e50
push eax
push 0x3e9
mov ecx, dword [ebp - 0x488]
call fcn.0040eb42
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x484]
call fcn.00401a60
push 0x10000
lea ecx, [ebp - 0x44c]
call fcn.00401a40
push eax
push 1
mov edx, dword [ebp - 0x1bc]
push edx
movzx eax, word [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x378]
call fcn.004367f0
cmp dword [ebp - 0x39c], 0
je 0x44291f
push 0
lea ecx, [ebp - 0x3bc]
call fcn.00403950
push eax
mov ecx, dword [ebp - 0x488]
call fcn.00441780
lea ecx, [ebp - 0x3bc]
call fcn.00403950
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x3dc]
push ecx
lea edx, [ebp - 0x46c]
push edx
call fcn.00441cf0
add esp, 8
lea ecx, [ebp - 0x3bc]
call fcn.00403950
push eax
lea ecx, [ebp - 0x46c]
call fcn.00403950
push eax
call fcn.00423a4b
add esp, 8
lea ecx, [ebp - 0x46c]
call fcn.004038d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44c]
call fcn.00402ae0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x398]
call fcn.00402ae0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3bc]
call fcn.004038d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3dc]
call fcn.00402ae0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x430]
call fcn.00436d10
jmp 0x442401
push 0x64
push str._d__
lea eax, [ebp - 0x1b8]
push eax
call fcn.0042141e
add esp, 0xc
push 0x64
mov ecx, dword [ebp - 0x488]
add ecx, 0x98
call fcn.00404620
lea ecx, [ebp - 0x1b8]
push ecx
push 0x3ea
mov ecx, dword [ebp - 0x488]
call fcn.0040eb42
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x378]
call fcn.004354c0
jmp 0x4429da
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x488]
cmp dword [eax + 0x78], 0
jne 0x442a10
mov ecx, dword [ebp - 0x488]
cmp dword [ecx + 0x7c], 0
jne 0x442a10
push 0
push 0x451730
push 0x451738
mov ecx, dword [ebp - 0x488]
call fcn.0040ac0a
push 0
push 0x7d0
push 1
mov ecx, dword [ebp - 0x488]
call fcn.004045c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402ae0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00421147
mov esp, ebp
pop ebp
ret