Function at 0x417c80
Capabilities:
Delete file

Disassembly:
sub esp, 0x234
mov eax, dword [0x44a1a0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
mov ebp, edx
mov dword [esp + 0xc], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0
mov ebx, ecx
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 8], ebx
movzx edx, word [ebp]
mov ecx, ebp
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], pe_nt_image_headers32
mov word [esp + 0x20], ax
push esi
push edi
test dx, dx
je 0x417cf2
lea ebx, [ebx]
add ecx, 2
cmp dx, 0x5c
cmove eax, ecx
movzx edx, word [ecx]
test dx, dx
jne 0x417ce0
test eax, eax
mov ecx, ebp
cmovne ecx, eax
test ecx, ecx
je 0x417d13
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x417d02
sub esi, edx
sar esi, 1
jmp 0x417d15
xor esi, esi
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040bc10
cmp esi, 4
jbe 0x417d31
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov word [eax + esi*2 - 8], cx
mov edx, ebx
mov ecx, ebp
call fcn.00417b60
mov edx, dword [esp + 0x24]
mov ecx, ebx
call fcn.00419d90
mov esi, eax
test esi, esi
je 0x417d5e
mov edx, dword [esi]
mov ecx, esi
push 0x1f4
call dword [edx + 0x14]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
call edi
mov ecx, dword [esp + 0x24]
mov ebx, 2
jmp 0x417d80
mov esi, ebp
dec ebx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x417d86
sub esi, edx
sar esi, 1
je 0x417e35
lea edi, [esi + 1]
cmp edi, dword [esp + 0x20]
jbe 0x417dd6
mov eax, dword [esp + 0x14]
shr eax, 0xa
test al, 1
jne 0x417df5
test ecx, ecx
je 0x417dbc
lea ecx, [esp + 0x14]
call fcn.00408240
push 0
push edi
lea ecx, [esp + 0x1c]
call fcn.004082a0
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x417e2b
mov dword [esp + 0x20], edi
add esi, esi
mov dword [esp + 0x18], edi
push esi
push ebp
push ecx
call fcn.00421610
mov eax, dword [esp + 0x30]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx esi, word [ecx]
xor eax, eax
mov edx, ecx
test ebx, ebx
je 0x417e44
test si, si
je 0x417e22
jmp 0x417e10
add edx, 2
cmp si, 0x5c
cmove eax, edx
movzx esi, word [edx]
test si, si
jne 0x417e10
test eax, eax
mov esi, ecx
cmovne esi, eax
jmp 0x417e78
mov dword [esp + 0x20], 0
jmp 0x417df5
xor eax, eax
mov word [ecx], ax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jmp 0x417dfb
test si, si
je 0x417e62
lea esp, [esp]
add edx, 2
cmp si, 0x5c
cmove eax, edx
movzx esi, word [edx]
test si, si
jne 0x417e50
test eax, eax
push 0x2e
cmovne ecx, eax
push ecx
call fcn.0041fa4a
mov ecx, dword [esp + 0x2c]
add esp, 8
mov esi, eax
test esi, esi
je 0x417eb7
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417e81
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 2]
push esi
push eax
call fcn.0041ef60
add esp, 0xc
mov eax, 0x5f
mov word [esi], ax
push dword [esp + 0x24]
call edi
mov ecx, dword [esp + 0x24]
test ebx, ebx
jne 0x417d80
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040bc10
test al, al
je 0x417edd
mov ecx, dword [esp + 0x24]
call fcn.00404640
xor ecx, ecx
mov word [eax], cx
mov edi, dword [esp + 0x24]
xor esi, esi
mov eax, edi
movzx ecx, word [edi]
test cx, cx
je 0x417f02
lea ecx, [ecx]
add eax, 2
cmp cx, 0x5c
cmove esi, eax
movzx ecx, word [eax]
test cx, cx
jne 0x417ef0
push ecx
lea ecx, [esp + 0x18]
call fcn.0040bee0
mov ecx, dword [esp + 0x10]
test esi, esi
cmovne edi, esi
mov edx, edi
call fcn.00419d90
mov esi, eax
test esi, esi
je 0x417f35
mov edx, dword [esi]
mov ecx, esi
push 0x1f4
call dword [edx + 0x14]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
push ecx
push 0x443814
lea ecx, [esp + 0x1c]
call fcn.0040bcc0
push dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040bc10
push ecx
push 0x44381c
lea ecx, [esp + 0x1c]
call fcn.0040bcc0
push dword [esp + 0x24]
call esi
lea ecx, [esp + 0x14]
call fcn.00408240
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e8c8
add esp, 0x234
ret