Function at 0x47ea60
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4e6538
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0047c610
cmp byte [esp + 0x38], 0
mov dword [esp + 0x2c], 0
je 0x47ece2
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004640c0
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0x38], 1
push eax
call fcn.00464ec0
mov edx, dword [esp + 0x28]
add esp, 0x10
or ebp, 0xffffffff
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [eax], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
test ecx, ecx
je 0x47eafa
cmp ecx, ebp
je 0x47eb07
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x47eb07
mov eax, dword [esp + 0x38]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x2c], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x47eb2c
cmp ecx, 0xffffffff
je 0x47eb39
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x47eb39
mov eax, dword [esp + 0x1c]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
push 1
push 0x51df8c
push 2
lea ecx, [esp + 0x24]
or ebx, 0xffffffff
call fcn.0041d3c0
test al, al
mov eax, dword [esp + 0x18]
je 0x47ebb0
xor edi, edi
cmp dword [eax + 4], edi
jle 0x47ebd0
lea ecx, [ecx]
mov ecx, dword [eax + 0xc]
lea ecx, [ecx + edi*2]
mov si, word [ecx + eax]
lea eax, [esp + 0x38]
push eax
call fcn.00464c40
add esp, 4
cmp si, word [eax]
jne 0x47eb88
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 4]
jl 0x47eb60
jmp 0x47ebd0
mov ebx, edi
cmp edi, 0xffffffff
je 0x47ebd0
lea eax, [esp + 0x38]
push eax
call fcn.00464c40
add esp, 4
lea ecx, [esp + 0x18]
movzx eax, word [eax]
push 1
push edi
push eax
call fcn.0041a560
mov ebx, eax
jmp 0x47ebd0
cmp dword [eax + 4], 2
jle 0x47ebd0
mov ecx, dword [eax + 0xc]
mov edx, 2
cmp word [ecx + eax + 2], 0x3a
cmove ebx, edx
jmp 0x47ebd0
lea eax, [esp + 0x16]
push eax
call fcn.00464c40
add esp, 4
lea ecx, [ebx + 1]
movzx eax, word [eax]
push 1
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0041a560
mov esi, eax
cmp esi, 0xffffffff
jne 0x47ec06
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 4]
cmp ebx, esi
je 0x47eca7
test esi, esi
je 0x47ec9c
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.0041a920
lea eax, [esp + 0x20]
mov byte [esp + 0x2c], 2
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00480560
add esp, 8
test al, al
jne 0x47ec6a
mov eax, dword [esp + 0x20]
cmp eax, 0xb7
je 0x47ec48
cmp eax, 5
jne 0x47ecae
lea eax, [esp + 0x38]
mov byte [esp + 0x38], 0
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004803b0
add esp, 8
test al, al
je 0x47ecae
cmp byte [esp + 0x38], 0
je 0x47ecae
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x2c], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x47ec8f
cmp ecx, 0xffffffff
je 0x47ec9c
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x47ec9c
mov eax, dword [esp + 0x1c]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ebx, esi
cmp esi, 0xffffffff
jne 0x47ebd0
mov bl, 1
jmp 0x47ed79
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
je 0x47ecce
cmp ecx, 0xffffffff
je 0x47ecdb
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x47ecdb
mov eax, dword [esp + 0x1c]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
xor bl, bl
jmp 0x47ed79
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0047c610
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x30], 3
push eax
call fcn.0049a5d0
add esp, 8
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 4
call fcn.0041de40
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov eax, dword [esp + 0x38]
setne bl
or ebp, 0xffffffff
mov ecx, dword [eax]
test ecx, ecx
je 0x47ed3f
cmp ecx, ebp
je 0x47ed4c
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x47ed4c
mov eax, dword [esp + 0x38]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
je 0x47ed6c
cmp ecx, 0xffffffff
je 0x47ed79
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x47ed79
mov eax, dword [esp + 0x1c]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
test eax, eax
je 0x47ed94
cmp eax, 0xffffffff
je 0x47eda4
lock xadd dword [ecx], ebp
dec ebp
setne cl
test cl, cl
jne 0x47eda4
push 4
push 2
push dword [esp + 0x20]
call fcn.00413640
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret