Function at 0x469fc0
Capabilities:
Create directory
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4f0828
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esp + 0x24]
call fcn.004699e0
test al, al
je 0x46a00c
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, esi
call fcn.00469ac0
xor edi, edi
mov byte [esp + 0x17], al
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], edi
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00469bd0
mov esi, dword [esp + 0x34]
add esp, 4
cmp esi, edi
jg 0x46a04f
push edi
push edi
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
sub eax, 0x10
call fcn.00403c75
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x40], 2
cmp byte [esp + 0x48], 0
lea eax, [esi - 1]
mov dword [esp + 0x20], eax
je 0x46a07c
inc eax
mov dword [esp + 0x20], eax
mov ebp, 1
cmp eax, ebp
mov dword [esp + 0x24], edi
jle 0x46a1a3
lea ecx, [ecx]
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea edi, [ebx - 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x46a0b7
cmp eax, dword [edi]
jne 0x46a0b7
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x46a0f2
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x46a2ca
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.004c652b
add esp, 0x10
add esi, 0x10
mov dword [esp + 0x18], esi
mov byte [esp + 0x40], 4
push 0x50ec88
call fcn.004c6f29
add esp, 4
push eax
push 0x50ec88
lea eax, [esp + 0x20]
call fcn.00403bf6
test ebp, ebp
jl 0x46a2cf
cmp ebp, dword [esp + 0x30]
jge 0x46a2cf
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x20]
call fcn.00403bf6
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46a253
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
cmp eax, 0xb7
je 0x46a264
cmp byte [esp + 0x17], 0
jne 0x46a264
cmp ebp, 1
jle 0x46a182
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [esp + 0x40], 2
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a1a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
and esi, eax
mov byte [esp + 0x40], 0
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a1d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
jmp 0x46a1f0
mov dword [esp + 0x24], edi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [edi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a21a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
sub ebp, 1
jne 0x46a1f0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004c6403
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x46a264
lea ebx, [esp + 0x18]
call fcn.00466770
push 0x50ec88
call fcn.004c6f29
add esp, 4
push eax
push 0x50ec88
lea eax, [esp + 0x24]
call fcn.00403bf6
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x24]
call fcn.00403bf6
mov byte [esp + 0x40], 2
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a2b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x1c]
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x46a090
jmp 0x46a1a3
call fcn.0044e9f4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]