Function at 0x404fd0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x449620
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460590]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push esi
mov dword [esp + 0x70], ebx
call fcn.004054e0
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
push eax
call fcn.00402190
add eax, 0x10
add esp, 4
mov dword [esp + 0x20], eax
push 5
push 0x452000
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 1
call fcn.00405e30
mov ebp, dword [esp + 0x20]
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x34], esp
mov edi, esp
push eax
call fcn.00402190
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00411260
add esp, 4
cmp eax, ebx
jne 0x405061
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x451f4c
lea ecx, [esp + 0x28]
call fcn.00405e30
push 9
push str.Unist.xml
lea ecx, [esp + 0x28]
call fcn.00405e30
cmp dword [esi + 0xc4], ebx
jne 0x40508f
push esi
call fcn.004054e0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
call fcn.00413d88
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4050b5
push 0x80004005
call fcn.00401000
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.00405730
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push eax
push ebp
call edi
cmp eax, ebx
jne 0x4050f2
call fcn.00402200
mov ecx, dword [esi + 0xc4]
mov edx, dword [ecx]
lea ebx, [esp + 0x24]
push ebx
push eax
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0xbc]
push ecx
call eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x405148
add ebp, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405137
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x6c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
jmp 0x40547c
mov eax, dword [esi + 0xc4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0xb8]
call eax
mov ecx, 3
mov word [esp + 0x3c], cx
lea ebx, [ecx - 2]
mov ecx, dword [esi + 0xd0]
xor eax, eax
mov dword [esp + 0x2c], eax
test ecx, ecx
jg 0x4051a4
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx - 0xc]
push eax
push ebx
call edi
test eax, eax
jne 0x4053d4
call fcn.00402200
lea ebx, [ebx]
mov eax, dword [esp + 0x2c]
test eax, eax
jl 0x4053cf
cmp eax, dword [esi + 0xd0]
jge 0x4053cf
mov edx, dword [esi + 0xcc]
lea ebp, [edx + eax*8]
mov eax, dword [ebp]
sub eax, 0x10
push eax
call fcn.00402190
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 4]
add esp, 4
mov dword [esp + 0x38], eax
push 4
push str.Node
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 3
call fcn.00402090
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call edi
test eax, eax
je 0x4050ed
mov ecx, dword [esi + 0xc4]
mov edx, dword [ecx]
lea ebp, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x40]
push 0
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x5c]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x64]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
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.00402090
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call edi
test eax, eax
je 0x4050ed
mov ecx, dword [esi + 0xc4]
mov edx, dword [ecx]
lea ebp, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x40]
push 0
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x5c]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x64]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov eax, dword [edx + 0xe0]
push ecx
call eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401f40
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call edi
test eax, eax
je 0x4050ed
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.00402090
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call edi
test eax, eax
je 0x4050ed
mov ecx, dword [esi + 0xc4]
mov edx, dword [ecx]
lea ebp, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x40]
push 0
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x5c]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x64]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov eax, dword [edx + 0xe0]
push ecx
call eax
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push 0x451e04
push edx
call fcn.004022d0
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp - 0xc]
add esp, 0xc
push eax
push ebp
call edi
test eax, eax
je 0x4050ed
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push eax
mov dword [esp + 0x34], 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
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [esi + 0xd0]
mov dword [esp + 0x2c], eax
jl 0x4051a0
jmp 0x405177
call fcn.004142f0
mov esi, dword [esi + 0xc4]
mov ecx, eax
mov edx, 8
mov word [esp + 0x4c], dx
mov edi, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x64], ecx
mov edx, dword [esi]
mov edx, dword [edx + 0x108]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
push esi
mov dword [eax + 0xc], ecx
call edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405421
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405431
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x405441
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.ole32.dll_CoUninitialize]
add ebp, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405474
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x6c], 0
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405495
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 0x4054bd
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