Function at 0x410ba0
Capabilities:
Delete directory

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x42beef
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
push ecx
lea ecx, [ebp + 0x40]
movlpd qword [ebp - 0x18], xmm0
call fcn.00408e20
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp + 0x40]
call fcn.0040f730
xorps xmm0, xmm0
mov dword [ebp + 0x38], 0
xor eax, eax
mov dword [ebp + 0x3c], 0
movlpd qword [ebp], xmm0
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
movlpd qword [ebp + 0x20], xmm0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 7
mov word [ebp + 0x28], ax
mov byte [ebp - 4], 2
push 4
mov dword [ebp + 0x58], eax
call fcn.0042952a
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 2
mov dword [ebp + 0x58], eax
mov byte [ebp - 4], 4
lea edx, [ebp + 0x40]
lea ecx, [ebp + 0x5c]
call fcn.0040c000
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp]
push ecx
push eax
lea ecx, [ebp + 0x58]
call fcn.00415890
mov bl, al
mov byte [ebp - 4], 4
mov edx, dword [ebp + 0x70]
cmp edx, 8
jb 0x410cdb
mov ecx, dword [ebp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410cd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410cd1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042955a
add esp, 8
mov esi, dword [ebp + 0x58]
xor eax, eax
mov dword [ebp + 0x6c], 0
mov dword [ebp + 0x70], 7
mov word [ebp + 0x5c], ax
test bl, bl
je 0x410f9d
mov ecx, dword [ebp + 0x20]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x410d0b
mov al, 1
jmp 0x410d0d
xor al, al
test al, al
je 0x410d52
mov edx, dword [ebp + 0x38]
test edx, edx
je 0x410d52
mov edi, dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
mov ebx, dword [ebp + 0x28]
cmp edi, 8
cmovae eax, ebx
cmp word [eax], 0x2e
jne 0x410d52
cmp edx, 1
je 0x410d47
cmp edi, 8
lea eax, [ebp + 0x28]
cmovae eax, ebx
cmp word [eax + 2], 0x2e
jne 0x410d52
cmp edx, 2
jne 0x410d52
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
jmp 0x410e28
or ecx, 0
je 0x410d5b
mov al, 1
jmp 0x410d5d
xor al, al
test al, al
lea edx, [ebp + 0x40]
lea eax, [ebp + 0x28]
lea ecx, [ebp + 0x5c]
push eax
je 0x410dbc
call fcn.0040e1e0
add esp, 4
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.00410ba0
mov ebx, eax
mov edi, edx
mov byte [ebp - 4], 4
mov edx, dword [ebp + 0x70]
cmp edx, 8
jb 0x410e18
mov ecx, dword [ebp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410e0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410e0e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.0040e1e0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x5c]
call fcn.0041b4e0
movzx eax, al
cdq
mov ebx, eax
mov edi, edx
mov byte [ebp - 4], 4
mov edx, dword [ebp + 0x70]
cmp edx, 8
jb 0x410e18
mov ecx, dword [ebp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410e0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410e0e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042955a
add esp, 8
xor eax, eax
mov dword [ebp + 0x70], 7
mov word [ebp + 0x5c], ax
mov dword [ebp + 0x6c], eax
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.004155c0
test al, al
je 0x410fa3
nop dword [eax + eax]
mov ecx, dword [ebp + 0x20]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x410e51
mov al, 1
jmp 0x410e53
xor al, al
test al, al
je 0x410e93
mov edx, dword [ebp + 0x38]
test edx, edx
je 0x410e93
cmp dword [ebp + 0x3c], 8
lea eax, [ebp + 0x28]
cmovae eax, dword [ebp + 0x28]
cmp word [eax], 0x2e
jne 0x410e93
cmp edx, 1
je 0x410f88
cmp dword [ebp + 0x3c], 8
lea eax, [ebp + 0x28]
cmovae eax, dword [ebp + 0x28]
cmp word [eax + 2], 0x2e
jne 0x410e93
cmp edx, 2
je 0x410f88
or ecx, 0
je 0x410e9c
mov al, 1
jmp 0x410e9e
xor al, al
test al, al
lea edx, [ebp + 0x40]
lea eax, [ebp + 0x28]
push eax
je 0x410f17
lea ecx, [ebp - 0x30]
call fcn.0040e1e0
add esp, 4
mov byte [ebp - 4], 8
mov ecx, eax
call fcn.00410ba0
add ebx, eax
adc edi, edx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x410f01
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410ef7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ccb
push edx
push ecx
call fcn.0042955a
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
jmp 0x410f88
lea ecx, [ebp + 0x5c]
call fcn.0040e1e0
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x5c]
call fcn.0041b4e0
movzx eax, al
cdq
add ebx, eax
adc edi, edx
mov byte [ebp - 4], 4
mov edx, dword [ebp + 0x70]
cmp edx, 8
jb 0x410f74
mov ecx, dword [ebp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410f6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ccb
push edx
push ecx
call fcn.0042955a
add esp, 8
xor eax, eax
mov dword [ebp + 0x6c], 0
mov dword [ebp + 0x70], 7
mov word [ebp + 0x5c], ax
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.004155c0
test al, al
jne 0x410e40
jmp 0x410fa3
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x410fbb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x410fbb
mov dword [esi], 0xffffffff
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41106e
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], 7
mov word [ebp + 0x5c], ax
mov byte [ebp - 4], 0xa
lea edx, [ebp + 0x5c]
lea ecx, [ebp + 0x40]
call fcn.0041b7f0
test al, al
je 0x41116a
cmp dword [ebp + 0x70], 8
lea eax, [ebp + 0x5c]
cmovae eax, dword [ebp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x41116a
mov byte [ebp - 4], 4
mov edx, dword [ebp + 0x70]
cmp edx, 8
jb 0x41105a
mov ecx, dword [ebp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411050
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x411050
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042955a
add esp, 8
xor eax, eax
mov dword [ebp + 0x6c], 0
mov dword [ebp + 0x70], 7
mov word [ebp + 0x5c], ax
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x411090
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x411090
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.0042955a
add esp, 8
mov dword [ebp + 0x58], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x3c]
cmp edx, 8
jb 0x4110e0
mov ecx, dword [ebp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4110d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41104a
push edx
push ecx
call fcn.0042955a
add esp, 8
xor eax, eax
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 7
mov word [ebp + 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x54]
cmp edx, 8
jb 0x411135
mov ecx, dword [ebp + 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41112b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41104a
push edx
push ecx
call fcn.0042955a
add esp, 8
xor eax, eax
mov dword [ebp + 0x50], 0
mov word [ebp + 0x40], ax
mov edx, edi
mov dword [ebp + 0x54], 7
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00429319
lea esp, [ebp + 0x78]
pop ebp
ret
mov byte [ebp - 4], 4
mov edx, dword [ebp + 0x70]
cmp edx, 8
jb 0x4111aa
mov ecx, dword [ebp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4111a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4111a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042955a
add esp, 8
xor eax, eax
mov dword [ebp + 0x6c], 0
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x70], 7
mov word [ebp + 0x5c], ax
call fcn.0041b3d0
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x411074
xor edx, edx
lea ecx, [ebp + 0x40]
call fcn.0041b2a0
cmp dword [ebp + 0x54], 8
lea ecx, [ebp + 0x40]
cmovae ecx, dword [ebp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41106e
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], 7
mov word [ebp + 0x5c], ax
mov byte [ebp - 4], 0xb
lea edx, [ebp + 0x5c]
lea ecx, [ebp + 0x40]
call fcn.0041b7f0
test al, al
je 0x411237
cmp dword [ebp + 0x70], 8
lea eax, [ebp + 0x5c]
cmovae eax, dword [ebp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41101a
mov byte [ebp - 4], 4
mov edx, dword [ebp + 0x70]
cmp edx, 8
jb 0x411275
mov ecx, dword [ebp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41126b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41104a
push edx
push ecx
call fcn.0042955a
add esp, 8
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 0x40]
xor eax, eax
mov dword [ebp + 0x6c], 0
mov dword [ebp + 0x70], 7
mov word [ebp + 0x5c], ax
call fcn.0041b2a0
jmp 0x411074