Function at 0x42a870
Capabilities:
Access peb ldr_data
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4bf118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push esi
push edi
mov edi, ecx
push 0xa
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c4], 0
call fcn.004a7f83
push 0xa
lea ecx, [esp + 0x58]
mov byte [esp + 0x1c4], 1
call fcn.004a7f83
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c0], 2
call fcn.004aad1d
mov eax, dword [0x4f5b3c]
mov dword [esp + 0x34], eax
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c4], 4
mov dword [esp + 0x28], vtable.CFileException.0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xffffffff
call fcn.004a9d5c
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x1c0], 5
push ecx
lea ecx, [esp + 0x10]
call fcn.004a9994
mov edx, dword [esp + 0xc]
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c4], 6
mov esi, dword [edx - 8]
call fcn.004a72e7
dec esi
cmp eax, esi
je 0x42a96f
lea eax, [esp + 0xc]
push 0x4ee660
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004a9e68
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x1c4], 7
call fcn.004a9d5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c0], 6
call fcn.004a9c1f
push 0x4eea10
lea ecx, [esp + 0x10]
call fcn.004a9faf
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x70]
push edx
call fcn.00434240
lea ecx, [esp + 0x70]
mov byte [esp + 0x1c0], 8
call fcn.00434310
test eax, eax
je 0x42aa86
mov bl, 0xb
lea ecx, [esp + 0x70]
call fcn.00434290
test eax, eax
je 0x42aa0d
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
call fcn.00434d10
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x1cc], 9
call fcn.004a9e68
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c4], 0xa
call fcn.004a812c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c0], 9
call fcn.004a9c1f
mov byte [esp + 0x1c0], 8
lea ecx, [esp + 0x20]
jmp 0x42aa70
lea ecx, [esp + 0x70]
call fcn.004342d0
test eax, eax
je 0x42aa75
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
call fcn.00434d10
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x1cc], bl
call fcn.004a9e68
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x1c4], 0xc
call fcn.004a812c
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c0], bl
call fcn.004a9c1f
mov byte [esp + 0x1c0], 8
lea ecx, [esp + 0x14]
call fcn.004a9c1f
lea ecx, [esp + 0x70]
call fcn.00434310
test eax, eax
jne 0x42a9a6
mov eax, dword [0x4f5b3c]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
test esi, esi
mov byte [esp + 0x1c0], 0xd
je 0x42ab46
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x10]
mov eax, dword [eax + 8]
push eax
call fcn.004a9d5c
lea ecx, [esp + 0x10]
call fcn.00436630
test eax, eax
jne 0x42ab3e
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4fee30
call fcn.0041c5c0
lea edx, [esp + 0x14]
push 2
push edx
lea ecx, [esp + 0x18]
call fcn.004a7219
mov eax, dword [eax]
push 0x4eeb84
push eax
call fcn.00474eb8
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.004a9c1f
test bl, bl
je 0x42ab3e
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov ecx, esp
push eax
call fcn.004a9994
push ecx
mov byte [esp + 0x1c8], 0xe
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4fc5e4
call fcn.00441d00
mov ecx, 0x4fee30
mov byte [esp + 0x1c8], 0xd
call fcn.00423580
test esi, esi
jne 0x42aaa3
mov esi, dword [esp + 0x58]
test esi, esi
je 0x42ab7b
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.004a9d5c
push ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x18], esp
mov ecx, esp
push edx
call fcn.004a9994
mov ecx, edi
call fcn.0042a870
test esi, esi
jne 0x42ab4e
mov eax, dword [esp + 0x1c8]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x1c8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x42ac2a
lea edx, [esp + 0x1c8]
mov ecx, 0x4fee30
push edx
call fcn.0041c5c0
lea eax, [esp + 0x14]
push 2
push eax
lea ecx, [esp + 0x1d0]
call fcn.004a7219
mov eax, dword [eax]
push 0x4eeb84
push eax
call fcn.00474eb8
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.004a9c1f
test bl, bl
je 0x42ac2a
push ecx
lea edx, [esp + 0x1cc]
mov dword [esp + 0x1c], esp
mov ecx, esp
push edx
call fcn.004a9994
push ecx
mov byte [esp + 0x1c8], 0xf
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4fc5e4
call fcn.00441d00
mov ecx, 0x4fee30
mov byte [esp + 0x1c8], 0xd
call fcn.00423580
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c0], 8
call fcn.004a9c1f
lea ecx, [esp + 0x70]
mov byte [esp + 0x1c0], 6
call fcn.00434270
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c0], 5
call fcn.004a9c1f
mov dword [esp + 0x24], vtable.CFileException.0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1c0], 0x10
call fcn.004a9c1f
lea ecx, [esp + 0x54]
mov byte [esp + 0x1c0], 1
call fcn.004a7ff7
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c0], 0
call fcn.004a7ff7
lea ecx, [esp + 0x1c8]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [esp + 0x1b8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1b8
ret 4