Function at 0x406440
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a61ac
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x4d6750]
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 - 0x4c8], ecx
mov esi, dword [ebp + 8]
mov edx, esi
push ecx
lea ecx, [ebp - 0x240]
call fcn.00402fa0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x406490
mov eax, dword [eax]
lea ecx, [ebp - 0x4c4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4064a7
xor bl, bl
jmp 0x4064c6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4a8], 0
jne 0x4064c4
cmp dword [ebp - 0x4a4], 0
jne 0x4064c4
xor bl, bl
jmp 0x4064c6
mov bl, 1
cmp dword [ebp - 0x22c], 8
jb 0x4064dd
push dword [ebp - 0x240]
call fcn.00488361
add esp, 4
test bl, bl
jne 0x4064e8
xor al, al
jmp 0x40678d
push 0x4b3104
push esi
call fcn.00488d83
mov esi, eax
add esp, 8
test esi, esi
je 0x4064e1
push esi
call fcn.0048965b
add esp, 4
test eax, eax
jne 0x406782
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x103
lea eax, [ebp - 0x11b]
mov byte [ebp - 0x11c], 0
push 0
push eax
call fcn.0048d420
add esp, 0xc
lea eax, [ebp - 0x11c]
push esi
push 0x104
push eax
call fcn.00489681
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
call edi
lea eax, [ebp - 0x11c]
push eax
call edi
cmp eax, 2
jl 0x406771
mov dword [ebp - 0x260], 0xf
mov dword [ebp - 0x264], 0
mov byte [ebp - 0x274], 0
mov dword [ebp - 4], 0
cmp byte [ebp - 0x11c], 0
jne 0x40658f
xor eax, eax
jmp 0x4065a1
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406598
sub eax, edx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x274]
call fcn.00401d20
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x23c]
push 0
push 0x4b2e3e
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
call fcn.00401d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x258]
push 1
push 0x4b312c
mov dword [ebp - 0x244], 0xf
mov dword [ebp - 0x248], 0
mov byte [ebp - 0x258], 0
call fcn.00401d20
push ecx
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x274]
call fcn.00409360
cmp dword [ebp - 0x244], 0x10
jb 0x40664e
push dword [ebp - 0x258]
call fcn.00488361
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x228], 0x10
mov dword [ebp - 0x244], 0xf
mov dword [ebp - 0x248], 0
mov byte [ebp - 0x258], 0
jb 0x406684
push dword [ebp - 0x23c]
call fcn.00488361
add esp, 4
push 0x103
lea eax, [ebp - 0x223]
mov byte [ebp - 0x224], 0
push 0
push eax
call fcn.0048d420
add esp, 0xc
lea eax, [ebp - 0x274]
cmp dword [ebp - 0x260], 0x10
cmovae eax, dword [ebp - 0x274]
push eax
mov eax, dword [ebp - 0x4c8]
add eax, 0x74
push eax
push 0x4b2e38
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.00488e61
add esp, 0x10
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x240]
call fcn.00402fa0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4066f5
mov eax, dword [eax]
lea ecx, [ebp - 0x4c4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40670c
xor bl, bl
jmp 0x40672b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4a8], 0
jne 0x406729
cmp dword [ebp - 0x4a4], 0
jne 0x406729
xor bl, bl
jmp 0x40672b
mov bl, 1
cmp dword [ebp - 0x22c], 8
jb 0x406742
push dword [ebp - 0x240]
call fcn.00488361
add esp, 4
test bl, bl
je 0x406753
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x260], 0x10
jb 0x406771
push dword [ebp - 0x274]
call fcn.00488361
add esp, 4
push esi
call fcn.0048965b
add esp, 4
test eax, eax
je 0x406513
push esi
call fcn.00488f02
add esp, 4
mov al, 1
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.00488366
mov esp, ebp
pop ebp
ret 4