Function at 0x103588c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 4]
push esi
push edi
xor esi, esi
push eax
mov dword [ebp - 8], esi
mov dword [0x1056878], esi
call fcn.0103ebf4
mov edi, eax
test edi, edi
je 0x10358f7
push 0x88
push str.c:_ntprivatectoleuiole2.0_appscommonchicago.._storage.c
push str.Cl32Test___ansi
push str.Assert_Failure__Module:__s__file__s__line__d_r_n
push 0x1056c90
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1056c90
call esi
push str.GlobalAlloc_Failed
call esi
push 0x104c08c
call esi
mov dword [0x1056878], edi
jmp 0x1035a91
push 0x114
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
push dword [ebp - 4]
call dword [ebx + 0xc]
mov esi, eax
test esi, esi
jne 0x103591c
mov dword [0x1056878], 0x8007000e
jmp 0x1035a91
xor ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi], ecx
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], cl
mov edi, dword [0x104f4a0]
mov eax, dword [0x104f4ac]
mov edx, dword [0x104f4b0]
mov ebx, dword [0x104f4bc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ebx
cmp eax, ecx
je 0x1035982
push eax
mov ebx, dword [eax]
mov dword [ebp - 8], eax
call dword [ebx + 4]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x103596b
push ebx
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, esi
jmp 0x1035a93
cmp dword [ebp + 0xc], 0
je 0x10359e1
or edi, dword [0x104f4b4]
mov ebx, dword [ebp + 8]
cmp dword [0x104f4c0], 0
jne 0x103599e
test ebx, ebx
jne 0x10359a4
or edi, 0x4000000
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push edi
push ebx
call fcn.010377a3
mov dword [ebp - 0xc], eax
mov edi, eax
test edi, edi
je 0x103595c
push 0xbf
mov eax, dword [0x1056d98]
push str.c:_ntprivatectoleuiole2.0_appscommonchicago.._storage.c
push eax
push dword [0x104ed80]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push str.Failed_to_Create_Root_Storage
jmp 0x1035a45
mov ebx, dword [ebp + 8]
push ebx
call fcn.010377ea
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1035a5d
cmp dword [0x104f4c4], 0
je 0x1035a00
or edi, 0x4000000
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.01037828
mov dword [ebp - 0xc], eax
mov edi, eax
test edi, edi
je 0x103595c
push 0xd8
mov eax, dword [0x1056d98]
push str.c:_ntprivatectoleuiole2.0_appscommonchicago.._storage.c
push eax
push dword [0x104ed80]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push str.Failed_to_Open_Root_Storage
push dword [0x104ed80]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x104ed80]
push edi
call fcn.0102e6d7
test esi, esi
je 0x1035a6d
push esi
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
push dword [ebp - 4]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [ebp - 8], 0
je 0x1035a89
mov eax, dword [ebp - 8]
push dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0xc]
mov dword [0x1056878], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc