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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x42cf78]
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x220]
xor esi, esi
push eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], esi
mov word [ebp - 0x21c], pe_nt_image_headers32
xor bh, bh
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x404c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AllocateAndInitializeSid_Error__u_n
call dword [sym.imp.MSVCR110.dll_printf]
add esp, 8
jmp 0x404f0f
mov eax, dword [ebp - 0x224]
xorps xmm0, xmm0
movq qword [ebp - 0x240], xmm0
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x228]
push eax
push 0
lea eax, [ebp - 0x258]
push eax
movq qword [ebp - 0x258], xmm0
movq qword [ebp - 0x250], xmm0
movq qword [ebp - 0x248], xmm0
push 1
mov dword [ebp - 0x258], 0xffffffff
mov dword [ebp - 0x254], 2
mov dword [ebp - 0x250], 3
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
je 0x404cf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetEntriesInAcl_Error__u_n
call dword [sym.imp.MSVCR110.dll_printf]
add esp, 8
jmp 0x404f0f
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x404d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_Error__u_n
call dword [sym.imp.MSVCR110.dll_printf]
add esp, 8
jmp 0x404f0f
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x404d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeSecurityDescriptor_Error__u_n
call dword [sym.imp.MSVCR110.dll_printf]
add esp, 8
jmp 0x404f0f
push 0
push dword [ebp - 0x228]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x404d75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorDacl_Error__u_n
call dword [sym.imp.MSVCR110.dll_printf]
add esp, 8
jmp 0x404f0f
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x8023
push 0
mov dword [ebp - 0x234], 0xc
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x404f0f
push str.Zeiss
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x114]
push eax
call edi
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
jne 0x404df1
cmp eax, 0xb7
jne 0x404f0f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x40dbf4
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x114]
push eax
call edi
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
jne 0x404e39
cmp eax, 0xb7
jne 0x404f0f
xor bh, bh
jmp 0x404e46
cmp eax, 0xb7
jne 0x404e44
xor bh, bh
jmp 0x404e46
mov bh, 1
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404e50
sub ecx, edx
lea eax, [ebp - 0x114]
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x218]
push str.key38.dat
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x274]
call sub.mfc110.dll_Ordinal_502
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x274]
mov dword [ebp - 4], 0
call sub.mfc110.dll_Ordinal_4644
test eax, eax
jne 0x404eea
lea ecx, [ebp - 0x274]
call sub.mfc110.dll_Ordinal_2827
push 0
push 0
push 2
lea eax, [ebp - 0x234]
push eax
push 0
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x404efd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bh, 1
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.mfc110.dll_Ordinal_1520]
lea ecx, [ebp - 0x274]
mov dword [ebp - 4], 0xffffffff
call sub.mfc110.dll_Ordinal_1135
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x404f20
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x228]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x404f33
push eax
call edi
test esi, esi
je 0x404f3a
push esi
call edi
mov al, bh
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.00409946
mov esp, ebp
pop ebp
ret 4