Function at 0x418360
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489e70
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4c9080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
push 0xffffffffffffffff
mov byte [ebp - 4], 1
push eax
push ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x5c], ax
call fcn.0040c8c7
mov byte [ebp - 4], 2
mov edx, 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x18], edx
mov esi, dword [ebp + 0x1c]
add esi, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp esi, edx
je 0x41845f
cmp esi, 0x7ffffffe
jbe 0x41841a
push str.string_too_long
call fcn.00439ca9
cmp esi, edx
jbe 0x41842e
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040d7e7
mov edx, dword [ebp - 0x18]
jmp 0x418445
cmp esi, 8
jae 0x418438
mov dword [ebp - 0x18], edx
jmp 0x41843c
test esi, esi
jne 0x418449
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ebp - 0x2c], ax
test esi, esi
je 0x41845f
cmp edx, 8
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d569
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d569
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4184dc
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x7fffffff
jbe 0x41849b
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x4184d3
test byte [ebp - 0x44], 0x1f
je 0x4184af
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4184bb
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x4184c7
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x4184d1
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
push eax
call fcn.0040c95c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x418559
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x7fffffff
jbe 0x418518
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x418550
test byte [ebp - 0x2c], 0x1f
je 0x41852c
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x418538
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x418544
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x41854e
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x30], 8
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov byte [ebp - 4], 1
setne al
xor ebx, ebx
test al, al
mov eax, dword [ebp - 0x48]
setne bl
lea ebx, [ebx*2 - 1]
cmp eax, 8
jb 0x4185ef
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x7fffffff
jbe 0x4185ae
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x4185e6
test byte [ebp - 0x5c], 0x1f
je 0x4185c2
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4185ce
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x4185da
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x4185e4
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x41865f
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x7fffffff
jbe 0x41861e
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x418656
test byte [ebp - 0x44], 0x1f
je 0x418632
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x41863e
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x41864a
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x418654
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x4186d3
mov ecx, dword [ebp + 0xc]
inc eax
cmp eax, 0x7fffffff
jbe 0x418692
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x4186ca
test byte [ebp + 0xc], 0x1f
je 0x4186a6
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4186b2
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x4186be
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x4186c8
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
mov eax, ebx
mov dword [ebp + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043b37f
mov esp, ebp
pop ebp
ret 0x1c