Function at 0x405020
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42737c
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x441018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x50]
push eax
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x70], 2
call dword [sym.imp.RPCRT4.dll_UuidCreate]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x4050da
mov edx, dword [ebp - 0x7c]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4050b7
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00406fc0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x105
mov byte [ebp - 0x74], al
lea ecx, [ebp - 0x28]
push dword [ebp - 0x74]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
push 0x105
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x70], 0xa
call fcn.00407e00
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040e8a0
push 0
push eax
lea ecx, [ebp - 0x28]
mov edi, edx
call fcn.00406c30
cmp edi, 0xffffffff
jne 0x405151
mov edi, 0x14
mov dword [ebp - 0x74], 0x441928
mov dword [ebp - 0x80], 0x441928
jmp 0x40515f
mov dword [ebp - 0x74], 0x441920
mov dword [ebp - 0x80], 0x441920
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x70], 6
push eax
test edi, edi
jne 0x405389
lea ecx, [ebp - 0x68]
call fcn.00406cc0
mov dword [ebp - 0x70], 0x16
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
push dword [ebp - 0x8c]
call fcn.004082b0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jb 0x4051e2
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4051d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405396
push ecx
push edx
call fcn.0040f504
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x405220
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405216
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405396
push ecx
push edx
call fcn.0040f504
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x70], 0x31
cmp ecx, 8
jb 0x405278
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40526e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405396
push ecx
push edx
call fcn.0040f504
add esp, 8
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x405282
mov edi, dword [esi]
push 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], 0xc
push eax
push 1
push str.O:SYD:_A_OICI_GA___BA__A_OICI_GA___SY__A_OICI_GR___WD_
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
call dword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x40536c
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4052c0
sub ecx, edx
mov dword [ebp - 0x30], 0
sar ecx, 1
xorps xmm0, xmm0
push ecx
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
call fcn.00407a90
mov dword [ebp - 0x70], 0xf1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 5
call fcn.00404c20
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x69], al
cmp ecx, 8
jb 0x405340
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405333
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40539b
push ecx
push edx
call fcn.0040f504
mov al, byte [ebp - 0x69]
add esp, 8
test al, al
jne 0x405360
mov dl, 1
call fcn.00404f50
lea eax, [ebp - 0x88]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor dl, dl
call fcn.00404f50
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
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.0040f4f6
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x78]
mov ecx, str.temp_directory_path
call fcn.00404550
call fcn.00414471
call fcn.00414471
int3