Function at 0x1004350
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
push edi
mov dword [ebp - 0xbc], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x1004385
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
test eax, eax
jne 0x100438c
xor eax, eax
jmp 0x10046fe
push 0x1002
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10043b6
xor eax, eax
jmp 0x10046fe
push 0x14
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x10043e1
xor eax, eax
jmp 0x10046fe
mov eax, dword [ebp - 4]
push eax
call fcn.01004bf0
mov eax, dword [ebp + 8]
push eax
call fcn.0102bb5f
mov dword [ebp - 0xb8], eax
push 8
push str.Cltest1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push 4
lea eax, [ebp - 0xb8]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
mov eax, dword [ebp + 8]
push eax
call fcn.0102b92e
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x100469d
cmp dword [ebp - 0xbc], 0
jne 0x100469d
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0x3c]
mov dword [eax + 0xc], 1
lea eax, [ebp - 0x98]
push eax
push 0x10017e8
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0x18]
mov eax, dword [eax]
call dword [eax]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xbc], eax
push 1
push 0
push 0
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0x3c]
push eax
call fcn.01036364
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0xb8]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1004503
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x100454b
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0xb8]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x108]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x108]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
push 1
push 0x104c1a8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x10
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
mov eax, dword [ebp - 0x9c]
add eax, 2
push eax
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x14
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push 4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push 4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
mov eax, dword [0x1053c80]
push eax
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
push eax
call dword [sym.imp.ole32.dll_OleConvertIStorageToOLESTREAM]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
and eax, 0x80000000
mov ecx, 0x80000000
and ecx, 0x80000000
cmp eax, ecx
jne 0x1004686
push 0xa9
push str.c:_ntprivatectoleuiole2.0_appscl2testchicago..convert.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.OleConvertIStorageToOLESTREAM_Failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x104c08c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xaa
push str.c:_ntprivatectoleuiole2.0_appscl2testchicago..convert.c
mov eax, dword [0x1056d98]
push eax
mov eax, dword [0x104ed80]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push str.OleConvertIStorageToOLESTREAM
mov eax, dword [0x104ed80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x104ed80]
push eax
mov eax, dword [ebp - 0xbc]
push eax
call fcn.0102e6d7
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0102b9b1
mov dword [ebp - 0x9c], eax
jmp 0x100442c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xbc]
and eax, 0x80000000
mov ecx, 0x80000000
and ecx, 0x80000000
cmp eax, ecx
jne 0x10046f4
xor eax, eax
jmp 0x10046fe
mov eax, 1
jmp 0x10046fe
pop edi
pop esi
pop ebx
leave
ret 8