Function at 0x46aa00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567717
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x5c3484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], edi
mov eax, dword [ecx + 0x20]
mov esi, dword [ecx + 0x1c]
cmp esi, eax
je 0x46aa6d
mov edi, eax
nop dword [eax + eax]
mov ecx, esi
call fcn.0047a9a0
add esi, 0x30
cmp esi, edi
jne 0x46aa50
mov ecx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x90]
mov esi, dword [ecx + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ecx + 0x20], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push ecx
call fcn.00469950
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x9c], eax
cmp esi, eax
jne 0x46ab72
call fcn.0041acd0
mov ecx, eax
test ecx, ecx
je 0x46b445
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x84], eax
push 0x587d84
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0040da50
test al, al
jne 0x46ab02
push 5
push 0x587d84
lea ecx, [ebp - 0x84]
call fcn.0040ec60
mov esi, dword [ebp - 0x84]
mov ecx, 0x400
mov edx, esi
mov byte [ebp - 4], 2
sub edx, edi
lea eax, [ecx + 0x7ffffbfe]
test eax, eax
je 0x46ab33
movzx eax, word [edx + edi]
test ax, ax
je 0x46ab33
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x46ab15
test ecx, ecx
lea eax, [edi - 2]
push str.CreateSafeBox_err_disk_unavailable
cmovne eax, edi
xor ecx, ecx
mov word [eax], cx
call fcn.00434480
add esp, 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46ab65
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.0047a6e0
jmp 0x46b2a2
cmp dword [esi + 0x20], 0x10
mov edx, SysReAllocString
je 0x46ad41
cmp dword [esi + 0x14], 8
mov ecx, esi
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], esi
jb 0x46ab9a
mov ecx, dword [esi]
mov dword [ebp - 0x80], ecx
cmp eax, 8
jae 0x46abad
movups xmm0, xmmword [ecx]
mov ecx, 7
movups xmmword [ebp - 0x4c], xmm0
jmp 0x46abf1
or eax, 7
lea ecx, [ebp - 0x4c]
cmp eax, 0x7ffffffe
cmova eax, edx
mov dword [ebp - 0x8c], eax
inc eax
push eax
call fcn.0041d560
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x4c], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x80]
push eax
call fcn.004c0f50
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
cmp ecx, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x94]
call fcn.00469f20
push str.3FE042F1_E916_4E1B_87D4_42E2371AEAC9
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00472630
add esp, 0xc
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x46b2c4
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x46ac9e
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ac94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b459
push edx
push ecx
call fcn.0045f7ba
add esp, 8
mov edx, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x46acf0
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ace6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b459
push edx
push ecx
call fcn.0045f7ba
add esp, 8
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x46ad41
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ad37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b459
push edx
push ecx
call fcn.0045f7ba
add esp, 8
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0xfc]
push eax
call fcn.00469540
cmp dword [esi + 0x14], 8
mov ecx, esi
mov byte [ebp - 4], 8
jb 0x46ad61
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push 0
mov ecx, eax
call fcn.00484140
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x57a9d0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.00432e20
mov dword [ebp - 0x3c], 0
xor ecx, ecx
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], 7
mov word [eax], cx
push 0x24
push str.3FE042F1_E916_4E1B_87D4_42E2371AEAC9
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.00432e20
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x7c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x6c], xmm0
mov word [eax], cx
mov edx, dword [ebp - 0x38]
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x46ae5a
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ae50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b459
push edx
push ecx
call fcn.0045f7ba
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xd
cmp edx, 8
jb 0x46aeac
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46aea2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b459
push edx
push ecx
call fcn.0045f7ba
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov edx, dword [ebp - 0xe8]
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x46af04
mov ecx, dword [ebp - 0xfc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46aefa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b459
push edx
push ecx
call fcn.0045f7ba
add esp, 8
mov ecx, dword [ebp - 0x6c]
xor eax, eax
cmp dword [ebp - 0x68], 8
mov word [ebp - 0xfc], ax
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 7
mov dword [ebp - 0x8c], eax
cmp ecx, 8
jae 0x46af52
movups xmm0, xmmword [eax]
mov dword [ebp - 0x54], ecx
mov eax, 7
mov dword [ebp - 0x50], 7
movups xmmword [ebp - 0x64], xmm0
jmp 0x46afa0
mov eax, ecx
mov ecx, SysReAllocString
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x90], eax
inc eax
push eax
call fcn.0041d560
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x64], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x8c]
push eax
call fcn.004c0f50
mov eax, dword [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x84], eax
mov ecx, eax
mov dword [ebp - 0x80], eax
cmp dword [esi + 0x14], 8
mov edx, dword [esi + 0x10]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x88], esi
jb 0x46afcc
mov edx, dword [esi]
mov dword [ebp - 0x88], edx
mov edx, dword [ebp - 0x84]
cmovb ecx, eax
cmovb edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x90], ecx
cmp edx, 8
jae 0x46b03e
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xa4], edx
mov edx, 7
mov dword [ebp - 0xa0], 7
mov dword [ebp - 0x80], 7
movups xmm0, xmmword [eax]
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], 7
movups xmmword [ebp - 0xb4], xmm0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x8c], eax
jmp 0x46b0b8
mov eax, edx
mov ecx, SysReAllocString
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, ecx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x80], eax
inc eax
push eax
call fcn.0041d560
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xb4], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x88]
push eax
call fcn.004c0f50
mov eax, dword [ebp - 0x98]
add esp, 0xc
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x80]
mov edx, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
cmp ecx, 8
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
cmovb edx, dword [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x88], edx
call fcn.00483380
cmp dword [ebp - 0x90], 8
mov eax, dword [ebp - 0x84]
cmovb eax, dword [ebp - 0x80]
mov byte [ebp - 4], 0x10
cmp eax, 8
jb 0x46b16c
mov edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x8c]
mov eax, ecx
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x46b162
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b459
push edx
push ecx
call fcn.0045f7ba
add esp, 8
mov edx, dword [ebp - 0x50]
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x46b1aa
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b1a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b459
push edx
push ecx
call fcn.0045f7ba
add esp, 8
mov ecx, dword [ebp - 0x94]
lea edx, [ebp - 0xe4]
add ecx, 0x1c
mov byte [ebp - 4], 0x14
push edx
mov eax, dword [ecx + 4]
push eax
cmp dword [ecx + 8], eax
je 0x46b1dc
push ecx
call fcn.004772d0
mov ecx, dword [ebp - 0x94]
add esp, 0xc
add dword [ecx + 0x20], 0x30
jmp 0x46b1e1
call fcn.004736d0
mov edx, dword [ebp - 0xb8]
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x46b225
mov ecx, dword [ebp - 0xcc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b21b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b459
push edx
push ecx
call fcn.0045f7ba
add esp, 8
xor eax, eax
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
call fcn.004191d0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0
call fcn.00447221
add esi, 0x28
cmp esi, dword [ebp - 0x9c]
jne 0x46ab72
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46b2a2
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.00472eb0
mov ecx, dword [ebp - 0x14]
mov eax, 0x66666667
mov esi, dword [ebp - 0x1c]
add esp, 0xc
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x1c]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004835c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045fbca
mov esp, ebp
pop ebp
ret 8
call fcn.0041acd0
mov ecx, eax
test ecx, ecx
je 0x46b44f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x80], eax
push 0x587dd8
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.0040da50
test al, al
jne 0x46b304
push 7
push 0x587dd8
lea ecx, [ebp - 0x80]
call fcn.0040ec60
mov esi, dword [ebp - 0x80]
mov ecx, 0x400
mov edx, esi
mov byte [ebp - 4], 7
sub edx, edi
lea eax, [ecx + 0x7ffffbfe]
test eax, eax
je 0x46b332
movzx eax, word [edx + edi]
test ax, ax
je 0x46b332
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x46b314
test ecx, ecx
lea eax, [edi - 2]
push str.CreateSafeBox_err_mkdir
cmovne eax, edi
xor ecx, ecx
mov word [eax], cx
call fcn.00434480
add esp, 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b364
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x46b39e
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b394
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b459
push edx
push ecx
call fcn.0045f7ba
add esp, 8
mov edx, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x46b3ec
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b3e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b45e
push edx
push ecx
call fcn.0045f7ba
add esp, 8
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
cmp edx, 8
jb 0x46b436
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b42c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b463
push edx
push ecx
call fcn.0045f7ba
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.0047a6e0
xor eax, eax
jmp 0x46b2a7
push 0x80004005
call fcn.00408070
push 0x80004005
call fcn.00408070
call fcn.004cad68
call fcn.004cad68
call fcn.004cad68
int3