Function at 0x46d280
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e792
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4b0], 0
push 0x400
lea eax, [ebp - 0x414]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00511230
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.0051c067
add esp, 0x18
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x42c]
push eax
call fcn.00449960
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x4b0], 1
call fcn.00452950
add esp, 4
test al, al
je 0x46d33f
lea eax, [ebp - 0x414]
push eax
call fcn.00462a10
add esp, 4
test eax, eax
jne 0x46d33f
mov bl, 1
jmp 0x46d341
xor bl, bl
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0
call fcn.00403b60
test bl, bl
je 0x46d5e1
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x444]
call fcn.00449960
push 0x5a7d4c
push 0x44a1d0
push 0x5a7d48
mov byte [ebp - 4], 3
mov dword [ebp - 0x4a8], 0
call fcn.004f73bf
add esp, 0xc
test eax, eax
je 0x46d775
lea eax, [ebp - 0x4a8]
mov dword [ebp - 0x4a4], 0x5a7d4c
push eax
lea eax, [ebp - 0x4b4]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x444]
movlpd qword [ebp - 0x4b4], xmm0
push eax
call fcn.00451dd0
push 0x5a7d4c
push 0x44a1d0
push 0x5a7d48
call fcn.004f73bf
add esp, 0x18
test eax, eax
je 0x46d77a
mov eax, dword [ebp - 0x4a4]
mov eax, dword [eax + 4]
cmp eax, dword [0x5a7d50]
jne 0x46d77f
cmp dword [ebp - 0x4a8], 0
jne 0x46d77f
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 2
call fcn.00403b60
lea eax, [ebp - 0x4a8]
push eax
call fcn.0047e820
mov edi, dword [ebp - 0x4a4]
add esp, 4
or esi, 0xffffffff
mov ebx, dword [eax]
test edi, edi
je 0x46d45a
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46d45a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x46d45a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test ebx, ebx
je 0x46d52c
lea eax, [ebp - 0x4a8]
push eax
call fcn.0047e820
add esp, 4
mov ecx, dword [eax]
sub esp, 8
mov eax, esp
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
movq xmm0, qword [ebp - 0x420]
push 2
sub esp, 0xc
mov dword [eax], str.delete_AiSuiteSDK_folder_________________________.....
mov dword [eax + 4], 0x36
mov eax, esp
mov byte [ebp - 4], 5
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00470be0
mov edi, dword [ebp - 0x4a4]
mov byte [ebp - 4], 2
test edi, edi
je 0x46d4e9
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46d4e9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x46d4e9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x4a8]
push eax
call fcn.0047e820
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 6
call fcn.0047f390
mov edi, dword [ebp - 0x4a4]
test edi, edi
je 0x46d52c
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46d52c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x46d52c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 0
jmp 0x46d5e4
or esi, 0xffffffff
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x46d712
lea eax, [ebp - 0x41c]
push eax
call fcn.0047e820
mov edi, dword [ebp - 0x418]
add esp, 4
mov ebx, dword [eax]
test edi, edi
je 0x46d633
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46d633
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x46d633
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test ebx, ebx
je 0x46d703
lea eax, [ebp - 0x41c]
push eax
call fcn.0047e820
mov ecx, dword [eax]
push ecx
mov eax, esp
mov dword [ebp - 0x4ac], 0
push 2
sub esp, 0xc
mov dword [ebp - 0x4a8], 0
movq xmm0, qword [ebp - 0x4ac]
mov dword [eax], str.create_AiSuiteSDK_folder_________________________.....
mov dword [eax + 4], 0x36
mov eax, esp
mov byte [ebp - 4], 0xa
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00470be0
mov edi, dword [ebp - 0x418]
mov byte [ebp - 4], 0
test edi, edi
je 0x46d6bd
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46d6bd
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x46d6bd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x41c]
push eax
call fcn.0047e820
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
call fcn.0047f390
mov edi, dword [ebp - 0x418]
mov byte [ebp - 4], 0
test edi, edi
je 0x46d703
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46d703
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x46d703
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x414]
push eax
call fcn.00462b10
mov edx, dword [ebp + 0x1c]
add esp, 4
cmp edx, 8
jb 0x46d757
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d74d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d7cc
push edx
push ecx
call fcn.004f8f7d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 0x18
call fcn.00521eb4
call fcn.00521eb4
push str.remove_all_p_:_invalid_argument
lea ecx, [ebp - 0x45c]
call fcn.00447b20
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 4
push 1
push eax
call fcn.00452c10
add esp, 8
lea ecx, [ebp - 0x4a0]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x45c]
push eax
call fcn.0044bd70
push 0x57fedc
lea eax, [ebp - 0x4a0]
push eax
call fcn.005106c1
call fcn.00514793
int3