Function at 0x40cdd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov dword [ebp - 0x220], ecx
push 0x4ddb50
lea ecx, [ebp - 4]
call fcn.00403da0
call fcn.004086a0
add eax, 0x410
mov dword [ebp - 0x224], eax
call fcn.004086a0
add eax, 0xe38
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x224]
mov dx, word [ecx]
mov word [ebp - 0x22e], dx
mov eax, dword [ebp - 0x228]
mov cx, word [ebp - 0x22e]
mov word [eax], cx
mov edx, dword [ebp - 0x224]
add edx, 2
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x228]
add eax, 2
mov dword [ebp - 0x228], eax
cmp word [ebp - 0x22e], 0
jne 0x40ce24
push 0x4ddb64
call fcn.004086a0
add eax, 0xe38
push eax
call fcn.0040c080
add esp, 8
push 0x4ddb68
call fcn.004086a0
add eax, 0xe38
push eax
call fcn.0040c080
add esp, 8
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.0043ef50
add esp, 0xc
push 0x17
lea eax, [ebp - 0x210]
push eax
call fcn.004086a0
mov ecx, eax
call fcn.0040f080
test eax, eax
je 0x40cfda
lea ecx, [ebp - 0x210]
add ecx, 0xfffffffe
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
mov ax, word [edx + 2]
mov word [ebp - 0x236], ax
add dword [ebp - 0x234], 2
cmp word [ebp - 0x236], 0
jne 0x40cee7
mov edi, dword [ebp - 0x234]
mov ecx, dword [0x4ddb88]
mov dword [edi], ecx
lea ecx, [ebp - 4]
call fcn.0040bed0
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x23c]
mov cx, word [eax]
mov word [ebp - 0x242], cx
add dword [ebp - 0x23c], 2
cmp word [ebp - 0x242], 0
jne 0x40cf31
mov edx, dword [ebp - 0x23c]
sub edx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], edx
lea ecx, [ebp - 0x210]
add ecx, 0xfffffffe
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x250]
mov ax, word [edx + 2]
mov word [ebp - 0x252], ax
add dword [ebp - 0x250], 2
cmp word [ebp - 0x252], 0
jne 0x40cf7f
mov edi, dword [ebp - 0x250]
mov esi, dword [ebp - 0x248]
mov edx, dword [ebp - 0x24c]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0040bf10
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x21c]
call fcn.00404bb0
lea ecx, [ebp - 0x210]
push ecx
push 0x4ddb8c
lea edx, [ebp - 0x21c]
push edx
call fcn.00405220
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.00404bb0
call fcn.004086a0
add eax, 0x410
push eax
push 0x4ddbac
lea eax, [ebp - 0x218]
push eax
call fcn.00405220
add esp, 0xc
push 0x4ddbcc
push 1
lea ecx, [ebp - 4]
call fcn.0040bed0
push eax
push 0
push 0
lea ecx, [ebp - 0x21c]
call fcn.0040bed0
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.004086a0
add eax, 0xc30
push eax
lea ecx, [ebp - 0x218]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.004086a0
mov ecx, eax
call fcn.0040f0e0
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040bf10
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0040bf10
call fcn.004086a0
add eax, 0xe38
push eax
push 0x4ddbd0
call fcn.004086a0
mov ecx, eax
call fcn.0040ea60
call fcn.004086f0
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
call fcn.00405ed0
test eax, eax
jne 0x40d0f3
call fcn.004086a0
add eax, 0xa28
push eax
call fcn.004086a0
add eax, 0x820
push eax
call fcn.004086a0
add eax, 0x410
push eax
push 0x4ddbe4
call fcn.004086a0
mov ecx, eax
call fcn.0040ed40
lea ecx, [ebp - 0x218]
call fcn.00403e20
lea ecx, [ebp - 0x21c]
call fcn.00403e20
lea ecx, [ebp - 4]
call fcn.00403e20
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret