Function at 0x4020a8
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
sub esp, 0x4d0
lea ebp, [esp - 4]
mov eax, dword [0x44d790]
xor eax, ebp
mov dword [ebp + 0x4d0], eax
push 0x64
mov eax, 0x43b1db
call fcn.00422097
mov esi, dword [ebp + 0x4dc]
mov eax, dword [esi]
mov edi, dword [ebp + 0x4e0]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], eax
call fcn.00401650
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x1c], ebx
je 0x4020fe
cmp dword [esi + 0x20], ebx
je 0x4024b3
lea ecx, [ebp - 0x4c]
call fcn.00408f4f
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.00408fe7
cmp eax, ebx
je 0x4024a0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x4c]
call fcn.00408c4f
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x30], eax
call fcn.00408f10
test eax, eax
jne 0x402494
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040929d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401650
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x248]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x58], 0x124
call fcn.00438390
lea eax, [ebp + 0x248]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401c98
mov eax, dword [ebp - 0x4c]
push 0x10
lea ecx, [ebp - 0x4c]
call dword [eax + 0x38]
test eax, eax
je 0x40222d
cmp dword [esi + 0x20], ebx
je 0x40247c
push dword [ebp - 0x18]
call fcn.0040432c
lea ecx, [ebp - 0x14]
mov dword [esp], str..
call fcn.00401d97
push dword [ebp + 0x4e4]
push dword [ebp - 0x14]
push esi
call fcn.004020a8
add esp, 0xc
cmp eax, 3
jne 0x40247c
lea ecx, [ebp - 0x4c]
call fcn.00408b69
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040167a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040167a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00408f78
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040167a
push 3
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4d0]
xor ecx, ebp
call fcn.00422088
add ebp, 0x4d4
leave
ret
cmp dword [esi + 0x1c], ebx
jne 0x40247c
push dword [ebp - 0x18]
call fcn.0040432c
pop ecx
push 0x80
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call fcn.004075b3
mov eax, dword [eax + 4]
push 0x3ee
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00401f3a
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401cbd
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.0040167a
push 0xc
call fcn.004049ee
mov esi, eax
mov dword [esi], 0x10000001
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404a28
mov dword [esi + 8], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
push edx
inc ecx
push ecx
push eax
call fcn.0042297b
add esp, 0x14
push ebx
push esi
push 0x465
push dword [ebp - 0x24]
call edi
push 0x80
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x20]
push section..text
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.004045fa
add esp, 0x14
cmp eax, ebx
jne 0x402479
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0x400
push esi
push ebx
push 0x1100
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [ebp - 0x28], ebx
je 0x4023d8
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalLock]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401ef2
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.00401cd0
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c4b
push 0xa
lea ecx, [ebp - 0x10]
call fcn.00401d19
push 0xd
lea ecx, [ebp - 0x10]
call fcn.00401d19
push 0x2e
lea ecx, [ebp - 0x10]
call fcn.00401d19
push 0x3002
lea ecx, [ebp - 0x10]
call fcn.00401d19
call fcn.004075b3
mov eax, dword [eax + 4]
push 0x3ef
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
call fcn.00401f3a
mov byte [ebp - 4], 6
push dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401cbd
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.0040167a
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
jmp 0x40240e
call fcn.004075b3
mov eax, dword [eax + 4]
push 0x3f0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.00401f3a
mov byte [ebp - 4], 7
mov eax, dword [eax]
push esi
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401cbd
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.0040167a
push 0xc
call fcn.004049ee
mov esi, eax
mov dword [esi], 0x10000000
mov dword [esi + 4], 0x22
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404a28
mov dword [esi + 8], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
push edx
inc ecx
push ecx
push eax
call fcn.0042297b
add esp, 0x14
push ebx
push esi
push 0x465
push dword [ebp - 0x24]
call edi
push 3
pop esi
cmp eax, esi
je 0x4025ed
cmp eax, 4
je 0x4022de
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040167a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040167a
cmp dword [ebp - 0x30], ebx
jne 0x402122
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
call fcn.00408b69
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00408f78
cmp dword [esi + 0x18], ebx
je 0x402681
push edi
lea ecx, [ebp - 0x20]
call fcn.00401ef2
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
call fcn.00401650
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x2c], 0x124
call fcn.00438390
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c98
lea eax, [ebp + 0x490]
push eax
call fcn.00438350
lea ecx, [ebp - 0x24]
call fcn.00401650
mov byte [ebp - 4], 0xa
push dword [ebp + 0x4e4]
lea eax, [ebp + 0x490]
push eax
lea eax, [ebp - 0x24]
push str.._s_x_
push eax
call fcn.00401cbd
add esp, 0x10
lea ecx, [ebp - 0x70]
call fcn.00408f4f
mov byte [ebp - 4], 0xb
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
call fcn.00408fe7
cmp eax, ebx
je 0x40264a
lea ecx, [ebp - 0x70]
call fcn.00408c4f
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00408f10
test eax, eax
jne 0x402642
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040929d
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c4b
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x30]
call fcn.0040167a
mov eax, dword [ebp - 0x24]
push dword [eax - 0xc]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401d5d
mov byte [ebp - 4], 0xd
push dword [eax]
movzx eax, word [edi]
push eax
lea eax, [ebp - 0x20]
push 0x43d96c
push eax
call fcn.00401cbd
add esp, 0x10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x34]
call fcn.0040167a
push dword [ebp - 0x20]
call fcn.0040456b
pop ecx
test eax, eax
jne 0x402642
mov eax, dword [ebp - 0x70]
push 0x10
lea ecx, [ebp - 0x70]
call dword [eax + 0x38]
test eax, eax
je 0x40262b
push dword [ebp - 0x10]
call fcn.004043a8
pop ecx
jmp 0x402642
lea ecx, [ebp - 0x4c]
call fcn.00408b69
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040167a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040167a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00408f78
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040167a
mov eax, esi
jmp 0x40220a
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, ebx
jne 0x40254e
lea ecx, [ebp - 0x70]
call fcn.00408b69
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
call fcn.00408f78
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x24]
call fcn.0040167a
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
call fcn.0040167a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.0040167a
xor esi, esi
inc esi
jmp 0x402618