Function at 0x415277
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x42d0b4]
xor eax, esp
mov dword [esp + 0x298], eax
xor eax, eax
mov byte [esp + 0x288], 1
push ebx
mov dword [esp + 0x20], eax
mov ebx, ecx
xor ecx, ecx
mov word [esp + 0x28], ax
push esi
push edi
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x52]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x32], ecx
mov dword [esp + 0x36], ecx
mov dword [esp + 0x3a], ecx
mov dword [esp + 0x3e], ecx
mov dword [esp + 0x42], ecx
mov dword [esp + 0x46], ecx
mov dword [esp + 0x4a], ecx
mov dword [esp + 0x4e], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x290], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [esp + 0x64], ecx
lea edi, [esp + 0x7c]
mov dword [esp + 0x68], ecx
mov byte [esp + 0x6c], cl
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, 0x104
push eax
mov dword [esp + 0x29c], eax
lea eax, [esp + 0x8c]
push ecx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esp + 0x88]
push 0x7fe9
call fcn.0040e330
test eax, eax
js 0x41546f
mov eax, dword [0x435768]
lea edx, [esp + 0x18]
xor edi, edi
mov dword [esp + 0x14], eax
mov ecx, ebx
mov dword [esp + 0x1c], 6
mov esi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x74], edi
call fcn.00415474
cmp eax, 1
je 0x41546f
mov ecx, dword [esp + 0x290]
test ecx, ecx
je 0x420f5e
mov edx, dword [esp + 0x298]
push edi
call fcn.00408deb
mov ebx, dword [esp + 0x60]
test ebx, ebx
je 0x420f6a
lea edx, [esp + 0x64]
mov edi, ebx
mov ecx, dword [edx]
lea eax, [ecx + 2]
mov dword [esp + 0xc], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x10]
jne 0x4153ad
sub ecx, dword [esp + 0xc]
sar ecx, 1
je 0x420fd1
mov edx, dword [edx + 0xc]
sub edi, 1
jne 0x4153a4
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x64]
and eax, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x420fa9
test dword [esp + 0x18], 0x2000
je 0x420f6d
mov ecx, dword [edi]
lea edx, [esp + 0xc]
call fcn.00414e43
test eax, eax
jne 0x420f8f
mov edi, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
sub ebx, 1
jne 0x4153dd
mov eax, dword [esp + 0x290]
test eax, eax
je 0x415466
push dword [esp + 0x298]
push eax
call fcn.0041230b
mov ecx, dword [esp + 0x14]
call fcn.0041190f
mov eax, dword [esp + 0x290]
xor ecx, ecx
mov dword [esp + 0x290], ecx
test eax, eax
je 0x41544f
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [esp + 0x2a4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416ad0
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x88]
jmp 0x41541d
xor esi, esi
inc esi
jmp 0x415433
lea ecx, [esp + 0x88]
jmp 0x415385
push edi
jmp 0x420fd4
mov ecx, dword [edi]
mov edx, 0x234e
push 0x2328
call fcn.00429a6e
cmp eax, 1
je 0x4153f3
xor esi, esi
inc esi
jmp 0x415406
cmp eax, 0x91
jne 0x420fa1
cmp dword [esp + 0xc], 0
je 0x415406
xor ecx, ecx
mov esi, eax
push ecx
push eax
jmp 0x420fc5
push dword [edi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
jne 0x415406
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
xor eax, eax
push eax
push esi
call fcn.00407834
pop ecx
pop ecx
jmp 0x415406
xor eax, eax
push eax
push 0x232a
call fcn.00407834
pop ecx
pop ecx
jmp 0x41546f