Function at 0x426570
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
lea edx, [ebx + 0xc78]
push esi
push edi
mov eax, dword [ebx + 0xdac]
add eax, 0x30
mov dword [ebp - 8], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0xc], eax
lea edi, [eax + 1]
cmp edi, eax
jbe 0x4265e2
lea esi, [edi + edi*2]
shl esi, 6
cmp esi, dword [edx + 4]
jbe 0x4265dc
cmp esi, dword [edx + 0xc]
ja 0x4265b8
push dword [edx + 0x14]
mov ecx, edx
call fcn.004594d0
test eax, eax
jne 0x4265d3
push 1
push 0
push str.Cant_alloc_memory_dstDirStatSv_
mov ecx, ebx
call fcn.00419420
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
lea edx, [ebx + 0xc78]
mov dword [edx + 8], esi
mov dword [edx + 0x18], edi
mov esi, dword [ebp - 8]
lea edi, [eax + eax*2]
shl edi, 6
mov ecx, 0x30
add edi, dword [edx]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x18]
mov byte [ebp - 1], 1
lea ecx, [eax + eax*2]
mov eax, dword [edx]
shl ecx, 6
add ecx, 0xffffff40
add eax, ecx
mov ecx, dword [ebx + 0xdac]
mov dword [ebp - 8], eax
test dword [ecx + 0x60], 0x400
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0xc], eax
je 0x426637
mov eax, dword [ebx + 0x690]
and eax, 0x4000
mov byte [ebp - 2], 1
or eax, 0
je 0x42663b
mov byte [ebp - 2], 0
cmp dword [ebx + 0x884], 0
je 0x42664e
test byte [ecx + 0x6c], 0x10
mov byte [ebp - 3], 1
je 0x426652
mov byte [ebp - 3], 0
mov edi, dword [ecx + 0x74]
lea edx, [ecx + 0xe8]
mov esi, dword [ecx + 0x18]
mov eax, dword [ebx + 0x834]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx*2]
test edi, edi
jne 0x426677
mov ecx, eax
call fcn.0041ae30
jmp 0x426681
push 1
push edx
push edi
push eax
call fcn.00418210
mov edi, eax
add edi, dword [ebp + 8]
test esi, esi
je 0x426726
mov eax, dword [ebx + 0xc98]
lea ecx, [ebx + 0xc94]
sub eax, dword [ebx + 0xc9c]
cmp eax, esi
jae 0x4266d3
lea eax, [esi + 0xffff]
and eax, 0xffff0000
push eax
call fcn.004594d0
test eax, eax
jne 0x4266cd
push 1
push eax
push str.Cant_alloc_memory_dstDirExtBuf_
mov ecx, ebx
call fcn.00419420
jmp 0x42692d
lea ecx, [ebx + 0xc94]
mov eax, dword [ebx + 0xdac]
push esi
push dword [eax + 0x20]
mov eax, dword [ecx + 8]
add eax, dword [ecx]
push eax
call fcn.0047f730
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebx + 0xc9c]
add ecx, dword [ebx + 0xc94]
mov eax, dword [edx + 0x70]
mov dword [edx + 0x60], ecx
add ecx, dword [edx + 0x6c]
add eax, ecx
mov dword [edx + 0x64], ecx
mov dword [edx + 0x68], eax
mov ecx, dword [ebx + 0xc9c]
lea eax, [ecx + esi]
cmp eax, dword [ebx + 0xc98]
jbe 0x42671d
int3
lea eax, [ecx + esi]
mov dword [ebx + 0xc9c], eax
cmp dword [ebp - 0xc], 0xd
jne 0x4267df
cmp dword [ebx + 0x864], 0
je 0x426790
push 0
push dword [ebx + 0x834]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x426790
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4267df
mov eax, dword [ebx + 0xb50]
push 0
add dword [eax + 0xd8], 1
adc dword [eax + 0xdc], 0
mov ecx, dword [ebx + 0x84c]
mov eax, dword [ebx + 0x834]
lea eax, [eax + ecx*2]
mov ecx, ebx
push eax
push str.CreateDirectory
call fcn.00419420
jmp 0x4267df
cmp dword [ebx + 0x854], 0
je 0x4267d1
cmp byte [ebp - 2], 0
jne 0x4267d1
cmp dword [ebx + 0x684], 7
je 0x4267d1
mov eax, dword [ebp - 8]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [eax + 0x24]
push dword [eax + 0x20]
mov eax, dword [ebx + 0x834]
push ecx
mov ecx, dword [ebx + 0x84c]
push 2
lea eax, [eax + ecx*2]
mov ecx, ebx
push eax
call fcn.00416d90
mov eax, dword [ebx + 0xb50]
add dword [eax + 0x20], 1
adc dword [eax + 0x24], 0
cmp dword [ebx + 0x864], 0
je 0x4267fa
cmp byte [ebp - 3], 0
je 0x4267fa
push edi
push dword [ebx + 0x834]
call fcn.00426480
cmp byte [ebp - 2], 0
mov eax, dword [ebx + 0x834]
mov dword [eax + edi*2], 0x5c
jne 0x42682f
lea eax, [edi + 1]
mov ecx, ebx
push eax
call fcn.00426060
test eax, eax
setne cl
cmp dword [ebx + 0xff4], 0
mov byte [ebp - 1], cl
jne 0x426930
jmp 0x426832
mov cl, byte [ebp - 1]
mov eax, dword [ebx + 0x834]
xor edx, edx
mov word [eax + edi*2], dx
mov edi, dword [ebp - 8]
test cl, cl
je 0x426858
test byte [edi + 0x3c], 2
je 0x426858
push ecx
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00426430
mov cl, byte [ebp - 1]
cmp dword [ebx + 0x864], 0
je 0x42689b
push edi
mov ecx, ebx
call fcn.00426970
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x42689b
mov al, byte [ebp - 2]
test al, al
je 0x4268dd
cmp dword [ebp - 0xc], 0xd
jne 0x4268dd
mov edx, dword [ebx + 0x790]
mov ecx, dword [ebx + 0x834]
or edx, 0x100
call fcn.004578c0
jmp 0x4268d7
cmp dword [ebx + 0x854], 0
je 0x4268da
mov al, byte [ebp - 2]
test al, al
je 0x4268dd
cmp dword [ebp - 0xc], 0xd
jne 0x4268dd
mov eax, dword [ebx + 0x834]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [edi + 0x24]
push dword [edi + 0x20]
push ecx
mov ecx, dword [ebx + 0x84c]
push 0xa
lea eax, [eax + ecx*2]
mov ecx, ebx
push eax
call fcn.00416d90
mov cl, byte [ebp - 1]
mov al, byte [ebp - 2]
cmp dword [ebx + 0x684], 4
jne 0x42690c
test al, al
je 0x42690c
xor eax, eax
test cl, cl
mov ecx, ebx
sete al
lea eax, [eax*2 + 2]
push eax
mov eax, dword [ebx + 0xdac]
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.00419b70
test esi, esi
je 0x42692d
mov ecx, dword [ebx + 0xc9c]
neg esi
lea eax, [ecx + esi]
cmp eax, dword [ebx + 0xc98]
jbe 0x426924
int3
lea eax, [ecx + esi]
mov dword [ebx + 0xc9c], eax
mov cl, byte [ebp - 1]
mov eax, dword [ebx + 0xc90]
test eax, eax
je 0x42694b
add dword [ebx + 0xc80], 0xffffff40
dec eax
mov dword [ebx + 0xc90], eax
test cl, cl
je 0x4265c8
cmp dword [ebx + 0xff4], 0
jne 0x4265c8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4