Function at 0x10001670
Capabilities:
Create directory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100087e0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1000d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x31], cl
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne byte [ebp - 0x29]
test eax, eax
jne 0x10001859
cmp byte [ebp - 0x31], al
je 0x10001859
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0x30], ecx
sete byte [ebp - 0x29]
test ecx, ecx
je 0x10001859
lea esi, [ebp - 0x13]
jns 0x10001733
neg ecx
mov dword [ebp - 0x30], ecx
nop
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x30]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x30], eax
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x10001700
dec esi
mov byte [esi], 0x2d
jmp 0x10001760
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x30]
add cl, cl
sub al, cl
mov ecx, eax
mov dword [ebp - 0x30], eax
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x10001733
lea eax, [ebp - 0x13]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp esi, eax
je 0x10001785
sub eax, esi
lea ecx, [ebp - 0x64]
push eax
push esi
call fcn.10005950
push 0x3d
push str._ArmouryWebBrowserEdge___Logger__IsFolderExisted___errCode_
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.10006b20
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0x10
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x10001811
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001807
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001807
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1000783f
add esp, 8
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp edx, 0x10
jb 0x10001859
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000184f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000184f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1000783f
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x10001895
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000188b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000188b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1000783f
add esp, 8
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000782e
mov esp, ebp
pop ebp
ret