Function at 0x4167ad
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x43e8b2
call fcn.0043c0bc
mov edi, ecx
mov dword [ebp - 0x20], edi
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x2c], edi
lea eax, [eax + edx*2]
mov dword [ebp - 0x28], eax
xor eax, eax
mov word [ebp - 0x24], ax
and dword [ebp - 4], eax
mov eax, dword [edi]
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ebx, 0x80010103
call fcn.0041672d
mov esi, eax
mov dword [ebp - 0x10], eax
test esi, esi
je 0x4168d0
cmp esi, 0x80010102
je 0x41680d
cmp esi, ebx
je 0x41680d
test esi, esi
js 0x4169e3
jmp 0x416813
xor esi, esi
inc esi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov ebx, dword [eax]
mov ecx, ebx
call fcn.0041054a
mov edx, eax
mov ecx, edx
sub ecx, ebx
sar ecx, 1
cmp ecx, 1
jbe 0x41684d
lea eax, [edx - 2]
mov cx, word [eax]
mov dword [ebp - 0x18], eax
call fcn.004166fb
test al, al
je 0x41684d
push 0x3a
pop eax
cmp ax, word [edx - 4]
je 0x41684d
mov edx, dword [ebp - 0x18]
cmp ebx, edx
je 0x416873
mov eax, ebx
mov dword [ebp - 0x14], eax
cmp ebx, dword [ebp - 0x28]
je 0x416878
mov ax, word [eax]
mov ecx, ebx
add dword [ebp - 0x14], 2
add ebx, 2
cmp ax, word [ecx]
jne 0x416878
mov eax, dword [ebp - 0x14]
cmp eax, edx
jne 0x416856
cmp ebx, dword [ebp - 0x28]
je 0x4168c6
push edx
lea ecx, [ebp - 0x2c]
call fcn.004166c4
cmp esi, 1
jne 0x416894
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
cmp dword [ecx], eax
jne 0x4167d5
lea ecx, [ebp - 0x2c]
call fcn.0041677f
mov edx, dword [edi + 4]
mov ebx, eax
mov ecx, dword [edi]
mov eax, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
lea esi, [ecx + eax*2]
mov dword [ebp - 0x1c], esi
cmp ebx, esi
mov esi, dword [ebp - 0x10]
je 0x416957
mov esi, dword [ebp - 0x14]
mov eax, ecx
mov edi, dword [ebp - 0x18]
jmp 0x416929
mov ebx, 0x80010103
jmp 0x4169e5
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
call fcn.00416756
test eax, eax
je 0x416894
mov eax, dword [edi]
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.0041672d
test eax, eax
jne 0x41691d
mov eax, dword [ebp - 0x14]
shr eax, 0xa
test al, 1
je 0x41690e
test byte [ebp - 0x14], 0x10
je 0x41690e
xor eax, eax
jmp 0x416911
xor eax, eax
inc eax
test eax, eax
jne 0x41691d
mov dword [ebp - 0x10], esi
jmp 0x416894
mov esi, 0x80010109
jmp 0x4169e3
mov eax, edi
mov cx, word [ebx]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call fcn.004166fb
test al, al
je 0x41694b
add ebx, 2
mov esi, edx
mov eax, edx
mov ecx, edi
cmp ebx, dword [ebp - 0x1c]
jne 0x416927
jmp 0x416951
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x20]
lea edx, [ecx + eax*2]
mov ecx, ebx
call fcn.00416711
push eax
lea ecx, [ebp - 0x2c]
call fcn.004166c4
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.00416756
test eax, eax
je 0x4169bd
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41698d
xor esi, esi
jmp 0x4169ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0040c9c3
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, 0x80010105
jne 0x4169bd
mov ecx, dword [edi]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
call fcn.00416756
neg eax
sbb eax, eax
and esi, eax
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x2c]
call fcn.0041677f
mov ecx, dword [edi]
mov ebx, eax
mov edx, dword [edi + 4]
mov dword [ebp - 0x18], ecx
lea eax, [ecx + edx*2]
cmp ebx, eax
je 0x4169e3
mov eax, edx
mov dword [ebp - 0x14], eax
test esi, esi
jns 0x4168ab
mov ebx, esi
lea ecx, [ebp - 0x2c]
call fcn.0041677f
mov eax, ebx
call fcn.0043c08a
ret