Function at 0x405930
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ab8b
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x47a2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0x28]
mov eax, 0x3e0f83e1
sub edx, dword [edi + 0x24]
imul edx
mov dword [ebp - 0x2f4], 0
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x405c79
xor ebx, ebx
nop dword [eax]
lea eax, [ebp - 0x58]
push eax
call fcn.004041f0
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x24]
add ecx, ebx
call fcn.0040de91
push eax
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00408c60
add esp, 4
push 0x47250c
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00408c60
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4059d8
mov eax, dword [eax]
lea ecx, [ebp - 0x2f0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 8
jb 0x405a22
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405a18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c95
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x405a73
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405a69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c95
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x405ac8
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405abe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c95
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp esi, 0xffffffff
je 0x405c47
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0xa0]
push eax
call fcn.004041f0
mov esi, eax
mov dword [ebp - 4], 2
mov ecx, dword [edi + 0x24]
add ecx, ebx
call fcn.0040de91
push eax
mov edx, esi
lea ecx, [ebp - 0x88]
call fcn.00408c60
add esp, 4
push 0x47250c
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00408c60
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x405b3a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x405b7b
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c95
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x405bd0
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405bc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c95
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x405c2a
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405c20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c95
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov ecx, dword [edi + 0x28]
mov eax, 0x3e0f83e1
sub ecx, dword [edi + 0x24]
add ebx, 0x84
mov esi, dword [ebp - 0x2f4]
imul ecx
inc esi
sar edx, 5
mov eax, edx
mov dword [ebp - 0x2f4], esi
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x405990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fe70
mov esp, ebp
pop ebp
ret
call fcn.00444fd9
int3