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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024251
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x288
mov eax, dword [0x10034028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x260], ecx
push 0
push 0x1c
lea eax, [ebp - 0x118]
mov dword [ebp - 0x260], ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x244], 0
movups xmmword [ebp - 0x258], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100021b0
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.10006be0
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
movzx eax, byte [ebp - 0x231]
push eax
movzx eax, byte [ebp - 0x232]
push eax
movzx eax, byte [ebp - 0x233]
push eax
movzx eax, byte [ebp - 0x234]
push eax
movzx eax, byte [ebp - 0x235]
push eax
movzx eax, byte [ebp - 0x236]
push eax
movzx eax, byte [ebp - 0x237]
push eax
movzx eax, byte [ebp - 0x238]
push eax
movzx eax, word [ebp - 0x23a]
push eax
movzx eax, word [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
lea eax, [ebp - 0x218]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.10006630
xorps xmm0, xmm0
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x280], 0
add esp, 0x34
lea edx, [ecx + 1]
movups xmmword [ebp - 0x294], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002271
sub ecx, edx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x294]
call fcn.10006be0
mov byte [ebp - 4], 1
mov eax, SysReAllocString
mov edx, dword [ebp - 0x248]
sub eax, edx
cmp eax, 1
jb 0x10002603
cmp dword [ebp - 0x244], 0x10
lea eax, [ebp - 0x258]
lea ecx, [edx + 1]
mov dword [ebp - 0x26c], 0
cmovae eax, dword [ebp - 0x258]
lea edi, [ebp - 0x27c]
mov esi, 0xf
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x268], 0
xorps xmm0, xmm0
mov dword [ebp - 0x25c], ecx
movups xmmword [ebp - 0x27c], xmm0
cmp ecx, esi
jbe 0x10002389
mov esi, ecx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x1000233d
mov ecx, SysReAllocString
mov esi, SysReAllocString
add ecx, 0x23
push ecx
call fcn.10008598
add esp, 4
test eax, eax
je 0x100025fe
mov ecx, dword [ebp - 0x25c]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x248]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1000237d
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x1000235e
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x10002608
jmp 0x10002315
test eax, eax
je 0x1000237b
push eax
call fcn.10008598
mov ecx, dword [ebp - 0x25c]
add esp, 4
mov edx, dword [ebp - 0x248]
mov edi, eax
jmp 0x1000237d
xor edi, edi
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x27c], edi
push edx
push eax
push edi
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x268], esi
call fcn.10009ad0
mov eax, dword [ebp - 0x248]
add esp, 0xc
mov byte [eax + edi], 0x5c
mov byte [edi + eax + 1], 0
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x260]
lea ecx, [ebp - 0x230]
call fcn.10007110
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x268]
cmp ecx, 0x10
jb 0x10002410
mov edx, dword [ebp - 0x27c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002406
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100025fe
push ecx
push edx
call fcn.100085c8
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x280]
cmp ecx, 0x10
jb 0x1000244e
mov edx, dword [ebp - 0x294]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002444
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100025fe
push ecx
push edx
call fcn.100085c8
add esp, 8
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x100024e1
mov edx, str.Directory_created:
mov ecx, 0x10034f48
call fcn.10006650
cmp dword [ebp - 0x21c], 0x10
lea edx, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae edx, dword [ebp - 0x230]
mov ecx, eax
call fcn.100072f0
add esp, 4
push eax
call fcn.100068f0
mov esi, dword [ebp - 0x264]
xorps xmm0, xmm0
add esp, 4
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x230]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [esi + 0x10], xmm0
jmp 0x1000257f
mov edx, str.Failed_to_create_directory:
mov ecx, 0x10035030
call fcn.10006650
cmp dword [ebp - 0x21c], 0x10
lea edx, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae edx, dword [ebp - 0x230]
mov ecx, eax
call fcn.100072f0
add esp, 4
push eax
call fcn.100068f0
mov esi, dword [ebp - 0x264]
add esp, 4
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x100303a3
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.10006be0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0x10
jb 0x1000257f
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002575
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100025fe
push ecx
push edx
call fcn.100085c8
add esp, 8
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp eax, 0x10
jb 0x100025de
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x258]
mov edx, eax
cmp ecx, 0x1000
jb 0x100025d4
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x25c], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100025fe
mov eax, dword [ebp - 0x25c]
push ecx
push eax
call fcn.100085c8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10008585
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10010aa5
call fcn.10001350
call fcn.100012b0
int3