Function at 0x45dce0
Capabilities:
Create directory
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4d9a98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51f714]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0045d4c0
test al, al
je 0x45dd28
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.0045d7e0
xor edi, edi
mov byte [esp + 0x1b], 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.0045d8f0
mov esi, dword [esp + 0x34]
add esp, 4
cmp esi, edi
jg 0x45dd6b
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.00425e77
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x40], 2
cmp byte [esp + 0x48], 0
lea eax, [esi - 1]
mov dword [esp + 0x24], eax
je 0x45dd98
inc eax
mov dword [esp + 0x24], eax
mov ebp, 1
cmp eax, ebp
mov dword [esp + 0x28], edi
jg 0x45de55
mov eax, dword [esp + 0x28]
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 0x45dddc
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]
lea esp, [esp]
mov dword [esp + 0x28], 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 0x45de1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
sub ebp, 1
jne 0x45ddf0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004ad777
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
xor edi, edi
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebx - 0x10]
call eax
cmp dword [esi + 0xc], edi
lea ecx, [esi + 0xc]
jl 0x45de7b
cmp eax, dword [esi]
jne 0x45de7b
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x45deb6
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x45dfdb
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004ad6fa
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x1c], edi
mov byte [esp + 0x40], 4
push 0x4f2254
call fcn.004af01d
add esp, 4
push eax
push 0x4f2254
lea eax, [esp + 0x24]
call fcn.004434e9
test ebp, ebp
jl 0x45dfe0
cmp ebp, dword [esp + 0x30]
jge 0x45dfe0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x24]
call fcn.004434e9
mov edi, dword [esp + 0x1c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45df64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
cmp eax, 0xb7
je 0x45df75
cmp byte [esp + 0x1b], 0
jne 0x45df75
cmp ebp, 1
jle 0x45df3a
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 0x45dda9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45dda9
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x45df75
lea ebx, [esp + 0x1c]
call fcn.0045b3f0
push 0x4f2254
call fcn.004af01d
add esp, 4
push eax
push 0x4f2254
lea eax, [esp + 0x28]
call fcn.004434e9
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x28]
call fcn.004434e9
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 0x45dfc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, dword [esp + 0x24]
jl 0x45de53
jmp 0x45dda9
call fcn.004027f4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]