Function at 0x406b50
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fce5
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x450398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00406270
lea esi, [ebp - 0x228]
call fcn.00402300
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x218], ax
call fcn.00429770
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 2
push 0
call esi
test eax, eax
js 0x406e7d
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
jmp 0x406be0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406be0
mov eax, dword [0x4462a4]
mov dword [edi], eax
lea eax, [ebp - 0x218]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406c00
mov ecx, dword [0x4465c8]
mov edx, dword [0x4465cc]
mov dword [eax], ecx
mov ecx, dword [0x4465d0]
mov dword [eax + 4], edx
mov edx, dword [0x4465d4]
mov dword [eax + 8], ecx
mov ecx, dword [0x4465d8]
mov dword [eax + 0xc], edx
mov dx, word [0x4465dc]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x406c81
cmp eax, 0xb7
je 0x406c81
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4074bb
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x22c]
push edx
mov ebx, str.ChoiceLoader.exe
call fcn.004141a0
add esp, 8
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.00413b80
push 1
push 0x4462a4
lea ebx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x21c]
push edx
mov ebx, 0x4462a4
call fcn.004141a0
push eax
lea eax, [ebp - 0x224]
push eax
mov ebx, 0x4463f0
mov byte [ebp - 4], 3
call fcn.004141a0
push eax
lea ecx, [ebp - 0x234]
push ecx
mov ebx, 0x446778
mov byte [ebp - 4], 4
call fcn.004141a0
add esp, 0x18
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00413b80
push 1
push 0x4462a4
lea ebx, [ebp - 0x230]
mov byte [ebp - 4], 8
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 6
push 0x446790
call fcn.00415c90
mov ebx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
call fcn.004060a0
test al, al
je 0x406f63
mov ebx, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x234]
call fcn.004060a0
test al, al
je 0x406f63
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push 0x19
push 0
call esi
test eax, eax
js 0x407046
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x22c]
push eax
mov ebx, str.ChoiceLoader.exe
call fcn.004141a0
add esp, 8
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 9
call fcn.00413b80
push 1
push 0x4462a4
lea ebx, [ebp - 0x220]
mov byte [ebp - 4], 0xa
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov ebx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
call fcn.004060a0
mov byte [ebp - 4], 9
test al, al
mov eax, dword [ebp - 0x220]
jne 0x407004
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406f34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406c5f
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406faf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406fd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406c5f
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407020
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407046
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push 0xb
push 0
call esi
test eax, eax
js 0x40716a
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x22c]
push eax
mov ebx, str.ChoiceLoader.exe
call fcn.004141a0
add esp, 8
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0xb
call fcn.00413b80
push 1
push 0x4462a4
lea ebx, [ebp - 0x220]
mov byte [ebp - 4], 0xc
call fcn.00415c90
push 0xa
push 0x4465c8
call fcn.00415c90
push 4
push 0x4465ec
call fcn.00415c90
mov ebx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
call fcn.004060a0
mov byte [ebp - 4], 0xb
test al, al
mov eax, dword [ebp - 0x220]
jne 0x407128
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4070f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406c5f
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407144
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40716a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x208
lea ecx, [ebp - 0x218]
push 0
push ecx
call fcn.00429770
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x218]
push edx
push 0
call esi
test eax, eax
js 0x407318
cmp word [ebp - 0x218], 0
je 0x407318
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
push ecx
mov ebx, str.ChoiceLoader.exe
call fcn.004141a0
add esp, 8
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0xd
call fcn.00413b80
mov edx, str.MicrosoftInternet_ExplorerQuick_Launch_
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0xe
call fcn.00413cd0
mov edx, 0x4465c8
lea eax, [ebp - 0x21c]
call fcn.00413cd0
mov edx, 0x4465ec
lea eax, [ebp - 0x21c]
call fcn.00413cd0
cmp byte [0x452bb9], 0
je 0x407254
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
call fcn.004060a0
test al, al
jne 0x407254
lea eax, [ebp - 0x21c]
call fcn.00415c70
lea eax, [ebp - 0x224]
call fcn.00415c70
lea eax, [ebp - 0x228]
call fcn.00415c70
jmp 0x4074c7
lea edx, [ebp - 0x218]
lea edi, [ebp - 0x21c]
call fcn.00413c90
mov edx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
mov eax, edi
call fcn.00413cd0
mov edx, 0x4465c8
mov eax, edi
call fcn.00413cd0
mov edx, 0x4465ec
mov eax, edi
call fcn.00413cd0
cmp byte [0x452bba], 0
je 0x4072a7
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
call fcn.004060a0
test al, al
je 0x40722e
lea edx, [ebp - 0x218]
lea edi, [ebp - 0x21c]
call fcn.00413c90
mov edx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedStartMenu_
mov eax, edi
call fcn.00413cd0
mov edx, 0x4465c8
mov eax, edi
call fcn.00413cd0
mov edx, 0x4465ec
mov eax, edi
call fcn.00413cd0
cmp byte [0x452bbb], 0
je 0x4072fe
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
call fcn.004060a0
test al, al
je 0x40722e
lea eax, [ebp - 0x21c]
call fcn.00415c70
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0
call fcn.00415c70
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00429770
add esp, 0xc
push 0
push 0x23
lea ecx, [ebp - 0x218]
push ecx
push 0
call esi
test eax, eax
js 0x40749e
cmp word [ebp - 0x218], 0
je 0x40749e
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x224]
push eax
mov ebx, str.ChoiceLoader.exe
call fcn.004141a0
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0xf
call fcn.00413b80
mov edx, str.MicrosoftInternet_ExplorerQuick_Launch_
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x10
call fcn.00413cd0
mov edx, 0x4465c8
lea eax, [ebp - 0x21c]
call fcn.00413cd0
mov edx, 0x4465ec
lea eax, [ebp - 0x21c]
call fcn.00413cd0
cmp byte [0x452bc0], 0
je 0x4073da
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
call fcn.004060a0
test al, al
je 0x40722e
lea edx, [ebp - 0x218]
lea edi, [ebp - 0x21c]
call fcn.00413c90
mov edx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
mov eax, edi
call fcn.00413cd0
mov edx, 0x4465c8
mov eax, edi
call fcn.00413cd0
mov edx, 0x4465ec
mov eax, edi
call fcn.00413cd0
cmp byte [0x452bc1], 0
je 0x407431
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
call fcn.004060a0
test al, al
je 0x40722e
lea edx, [ebp - 0x218]
lea edi, [ebp - 0x21c]
call fcn.00413c90
mov edx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedStartMenu_
mov eax, edi
call fcn.00413cd0
mov edx, 0x4465c8
mov eax, edi
call fcn.00413cd0
mov edx, 0x4465ec
mov eax, edi
call fcn.00413cd0
cmp byte [0x452bc2], 0
je 0x407488
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
call fcn.004060a0
test al, al
je 0x40722e
lea eax, [ebp - 0x21c]
call fcn.00415c70
lea eax, [ebp - 0x224]
call fcn.00415c70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4074c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004267a3
mov esp, ebp
pop ebp
ret