Function at 0x403fd0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x446ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c970]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
push edi
mov dword [esp + 0x70], ebp
call fcn.004045a0
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
push eax
call fcn.004018d0
add eax, 0x10
add esp, 4
mov dword [esp + 0x20], eax
push 5
push 0x44e674
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 1
call fcn.00404ff0
mov ebx, dword [esp + 0x20]
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.004018d0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040a820
add esp, 4
cmp eax, ebp
jne 0x404061
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x44e4d4
lea ecx, [esp + 0x28]
call fcn.00404ff0
push 9
push str.unist.xml
lea ecx, [esp + 0x28]
call fcn.00404ff0
cmp dword [edi + 0xb8], ebp
jne 0x40408f
push edi
call fcn.004045a0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ebp
call fcn.00410d21
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4040b5
push 0x80004005
call fcn.004018a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push str.unist
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 2
call fcn.00405700
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, ebp
jne 0x4040f0
call fcn.004018c0
mov ecx, dword [edi + 0xb8]
mov edx, dword [ecx]
lea ebx, [esp + 0x24]
push ebx
push eax
mov ebp, eax
mov eax, dword [edx + 0xbc]
push ecx
call eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x40413b
add esi, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404515
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x404515
mov eax, dword [edi + 0xb8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0xb8]
call eax
mov ecx, 3
mov word [esp + 0x3c], cx
mov ecx, dword [edi + 0xac]
xor eax, eax
mov dword [esp + 0x2c], eax
test ecx, ecx
jg 0x404194
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x40447a
call fcn.004018c0
mov edi, edi
mov eax, dword [esp + 0x2c]
test eax, eax
jl 0x404475
cmp eax, dword [edi + 0xac]
jge 0x404475
mov edx, dword [edi + 0xa8]
mov esi, dword [edx + eax*8]
mov ecx, dword [esi - 0x10]
lea ebx, [edx + eax*8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4041db
cmp eax, dword [esi]
jne 0x4041db
mov ebp, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x404216
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x4040eb
mov eax, dword [esi + 4]
mov dword [ebp + 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, [ebp + 0x10]
push eax
call fcn.0042ecf5
add esp, 0x10
mov ecx, dword [ebx + 4]
add ebp, 0x10
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
push 4
push str.Node
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 3
call fcn.00401700
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push ecx
push eax
call ebx
test eax, eax
je 0x4040eb
mov ecx, dword [edi + 0xb8]
mov edx, dword [ecx]
lea esi, [esp + 0x1c]
push esi
mov esi, dword [esp + 0x40]
push 0
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x5c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x64]
mov ebp, 1
mov dword [eax + 8], ebp
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0xe0]
push ecx
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
push 4
push str.Name
lea ecx, [esp + 0x20]
call fcn.00401700
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
push eax
push esi
call ebx
test eax, eax
je 0x4040eb
mov ecx, dword [edi + 0xb8]
mov edx, dword [ecx]
lea ebx, [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x40]
push 0
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x5c]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0xe0]
push ecx
call eax
mov ebx, dword [esp + 0x34]
add ebx, 0xfffffff0
lea ebp, [esi - 0x10]
cmp ebx, ebp
je 0x40435f
cmp dword [ebp + 0xc], 0
lea esi, [ebp + 0xc]
jl 0x404349
mov ecx, dword [ebx]
cmp ecx, dword [ebp]
jne 0x404349
push ebx
call fcn.004018d0
add esp, 4
mov dword [esp + 0x30], eax
or edx, 0xffffffff
lock xadd dword [esi], edx
dec edx
test edx, edx
jg 0x40433c
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov esi, dword [esp + 0x30]
add esi, 0x10
mov dword [esp + 0x18], esi
jmp 0x40435f
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401700
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push eax
push esi
call ebp
test eax, eax
je 0x4040eb
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x6c]
push ecx
call eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
push 4
push str.Type
lea ecx, [esp + 0x20]
call fcn.00401700
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call ebp
test eax, eax
je 0x4040eb
mov ecx, dword [edi + 0xb8]
mov esi, dword [ecx]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x40]
push 0
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, 1
mov dword [eax + 8], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0xe0]
push ecx
call eax
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push 0x44eb5c
push edx
call fcn.00401500
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
call ebp
test eax, eax
je 0x4040eb
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push eax
mov ebp, eax
mov eax, dword [edx + 0x6c]
push ecx
call eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
mov byte [esp + 0x6c], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40445b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [edi + 0xac]
mov dword [esp + 0x2c], eax
jl 0x404190
jmp 0x404167
call fcn.00410c42
mov edi, dword [edi + 0xb8]
mov ecx, eax
mov edx, 8
mov word [esp + 0x4c], dx
mov ebx, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x64], ecx
mov edx, dword [edi]
mov edx, dword [edx + 0x108]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
push edi
mov dword [eax + 0xc], ecx
call edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4044c7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4044d7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4044e7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebp
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.ole32.dll_CoUninitialize]
add esi, 0xfffffff0
mov byte [esp + 0x6c], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404515
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x6c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40453a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404562
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4