Function at 0x10333ff
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
xor edi, edi
mov eax, dword [esi]
mov dword [ebp - 0x54], edi
cmp eax, 4
mov dword [ebp - 0x58], edi
jne 0x10334d8
add esi, 4
cmp dword [esi], edi
jne 0x103343a
push esi
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1033749
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x60]
push eax
push 1
push dword [ebp - 0x54]
push dword [ebp - 0x58]
mov edx, dword [edi + 4]
push edx
mov eax, dword [edx]
call dword [eax + 0x14]
mov eax, dword [edi + 4]
push 0
push 0
mov ebx, dword [eax]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
call dword [ebx + 0x14]
mov eax, dword [esi]
push 0
push 0
mov ebx, dword [eax]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
call dword [ebx + 0x14]
mov dword [0x1056b38], 8
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x48]
push eax
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov ebx, dword [ecx]
push dword [esi]
push ecx
call dword [ebx + 0x1c]
test eax, eax
je 0x10334a6
mov eax, 0x80004005
jmp 0x1033749
mov dword [0x1056b38], 8
mov eax, dword [edi + 4]
push 0
push 0
mov ebx, dword [eax]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
call dword [ebx + 0x14]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov eax, dword [esi]
push eax
mov ebx, dword [eax]
call dword [ebx + 0x18]
xor eax, eax
jmp 0x1033749
cmp eax, 1
jne 0x1033620
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp eax, 8
je 0x10334f4
cmp eax, 0x10
jne 0x1033744
mov edi, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x48]
mov eax, dword [edi + 4]
push ecx
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
push 0x74f
push str.c:_ntprivatectoleuiole2.0_appscommonchicago..dataobj.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
push 0x1056c90
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Not_Implemented_Yet
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x104c08c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x1056b38], 8
mov eax, dword [esi + 4]
test eax, eax
jne 0x10335a3
push 0
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
test eax, eax
jne 0x1033575
mov eax, 0x8007000e
jmp 0x1033749
mov ebx, 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x10335ac
test ebx, ebx
je 0x1033599
push esi
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
mov dword [esi + 4], 0
mov eax, 0x80004005
jmp 0x1033749
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
jmp 0x103357a
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x60]
push eax
push 1
push dword [ebp - 0x54]
mov eax, dword [ecx]
push dword [ebp - 0x58]
push ecx
call dword [eax + 0x14]
mov eax, dword [edi + 4]
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov dword [0x1056b38], 8
mov eax, dword [edi + 4]
push 0
push 0
mov edi, dword [eax]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
call dword [edi + 0x14]
mov dword [0x1056b38], 8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebx, ebx
je 0x1033616
push esi
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
mov dword [esi + 4], 0
mov eax, 0x80004005
jmp 0x1033749
cmp eax, 2
jne 0x1033744
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x50], 0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0xa8]
mov ebx, dword [eax]
push ecx
push eax
call dword [ebx + 0x30]
mov eax, dword [esi + 4]
cmp word [eax], 0
je 0x1033744
push 1
push eax
call fcn.0103746f
cmp eax, 0xffffffff
mov ebx, eax
jne 0x1033683
push 0
push dword [esi + 4]
call fcn.010374b5
cmp eax, 0xffffffff
mov ebx, eax
jne 0x103367c
mov eax, 0x80004005
jmp 0x1033749
mov dword [ebp - 0x50], 1
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x60]
push eax
push 1
push dword [ebp - 0x54]
mov eax, dword [ecx]
push dword [ebp - 0x58]
push ecx
call dword [eax + 0x14]
mov eax, dword [edi + 4]
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
cmp dword [ebp - 0xa0], 0
jbe 0x10336ff
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x128]
mov dword [0x1056b38], 8
mov ecx, dword [edi + 4]
push eax
push pe_nt_image_headers32
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x48]
lea edx, [ebp - 0x128]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, dword [ebp - 0x48]
jne 0x10336ff
mov eax, dword [ebp - 0x48]
sub dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
ja 0x10336b4
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
mov dword [0x1056b38], 8
mov eax, dword [edi + 4]
push 0
push 0
mov ebx, dword [eax]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
call dword [ebx + 0x14]
cmp dword [ebp - 0xa0], 0
je 0x1033740
cmp dword [ebp - 0x50], 0
je 0x1033739
push esi
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
mov eax, 0x80004005
jmp 0x1033749
xor eax, eax
jmp 0x1033749
mov eax, 0x80004001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc