Function at 0x403c50
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
call fcn.004041e0
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebx + 0xa4], eax
jne 0x403c96
push str.Load:_Error_locking_memory_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x44]
mov edi, 0x416848
mov dword [ebx + 0x60], ecx
mov ecx, 3
mov esi, eax
xor edx, edx
mov dword [ebx + 0xa0], eax
repe cmpsb byte [esi], byte es:[edi]
je 0x403de0
lea edx, [eax + 3]
mov ecx, 3
mov edi, 0x416844
mov esi, edx
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x403ce4
mov esi, edx
mov ecx, 3
mov edi, 0x416840
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403de0
mov esi, dword [esp + 0x40]
mov dword [ebx + 0xa4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push str.dont_delete_memory_on_objects_release
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x10]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x403d22
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
lea esi, [ebx + 0x9c]
push esi
push 0x40a988
push 0
push ecx
push edx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x403d5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esi]
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 0x9ec
push 0x58
push esi
call edi
mov ecx, dword [esp + 0x44]
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push ecx
call ebp
push 0x9ec
push 0x5a
push esi
mov dword [ebx + 0x50], eax
call edi
mov edx, dword [esp + 0x1c]
push eax
push edx
call ebp
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x20]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
push edx
push eax
mov ecx, ebx
call fcn.00405230
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
lea edi, [eax + 6]
xor ecx, ecx
mov dword [ebx + 0x6c], 1
mov dword [ebx + 0xa8], edi
mov cl, byte [edi + 4]
mov edx, ecx
sar edx, 7
cmp edx, 1
jne 0x403e31
and ecx, 7
inc ecx
shl edx, cl
lea ecx, [edx + edx*2]
xor edx, edx
mov dword [ebx + 0x68], ecx
mov dl, byte [edi + 5]
mov esi, edx
xor ecx, ecx
xor edx, edx
lea eax, [eax + esi*2]
mov ch, byte [esi + eax + 0xf]
mov dl, byte [esi + eax + 0xd]
mov cl, byte [esi + eax + 0xe]
lea esi, [esi + eax + 0xd]
shl ecx, 8
or ecx, edx
mov dword [ebx + 0x58], ecx
xor eax, eax
xor ecx, ecx
mov ax, word [edi]
xor esi, esi
mov dword [ebx + 0x50], eax
mov cx, word [edi + 2]
mov dword [ebx + 0x54], ecx
mov ecx, ebx
xor edi, edi
call fcn.004046f0
mov ecx, ebx
call fcn.00404700
test eax, eax
je 0x403e68
mov ecx, ebx
inc esi
call fcn.00404700
test eax, eax
jne 0x403e58
cmp esi, edi
jne 0x403e85
mov edx, dword [esp + 0x40]
mov dword [ebx + 0xa4], edi
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
cmp esi, 1
jne 0x403efa
mov esi, dword [esp + 0x40]
mov dword [ebx + 0xa4], edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
push eax
push edi
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x403eb8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
lea ecx, [ebx + 0x9c]
push ecx
push 0x40a988
push edi
push edx
push eax
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x403eef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x403dc7
mov ecx, ebx
call fcn.004046f0
lea eax, [esp + 0x38]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebx
call fcn.00404f80
mov esi, eax
cmp esi, edi
je 0x40418d
lea edx, [esp + 0x44]
mov dword [esp + 0x44], edi
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x403f4d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x404161
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x20]
push eax
push 0x40a988
push edi
push ecx
push edx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
test eax, eax
mov eax, dword [esp + 0x44]
je 0x403f7b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404161
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebx + 0xb4]
mov esi, dword [ebx + 0xb8]
add ebx, 0xac
sub esi, ecx
mov eax, 0x92492493
mov ebp, ecx
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x404099
mov edi, dword [ebx + 4]
test edi, edi
je 0x403fd8
mov esi, ecx
mov eax, 0x92492493
sub esi, edi
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov esi, edx
ja 0x403fdd
mov esi, 1
test edi, edi
jne 0x403fe5
xor edx, edx
jmp 0x403ffa
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea edi, [edx + esi]
test edi, edi
mov eax, edi
jge 0x404005
xor eax, eax
lea edx, [eax*8]
sub edx, eax
shl edx, 2
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push esi
push ebp
push eax
call fcn.00405380
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.004053c0
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
add edx, 0x1c
mov ecx, ebx
push edx
push eax
push ebp
call fcn.00405380
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.00405370
mov eax, dword [ebx + 4]
push eax
call sub.MFC42.DLL_operatordelete
lea ecx, [edi*8]
add esp, 4
sub ecx, edi
lea edx, [esi + ecx*4]
mov ecx, ebx
mov dword [ebx + 0xc], edx
call fcn.00405340
inc eax
mov dword [ebx + 4], esi
lea ecx, [eax*8]
sub ecx, eax
lea edx, [esi + ecx*4]
mov dword [ebx + 8], edx
jmp 0x40415d
mov esi, ecx
mov eax, 0x92492493
sub esi, ebp
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x40410e
lea edx, [ebp + 0x1c]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.00405380
mov esi, dword [ebx + 8]
lea eax, [esp + 0x20]
mov ecx, esi
push eax
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push esi
call fcn.004053c0
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x404159
mov edi, ebp
add ebp, 0x1c
mov ecx, 7
lea esi, [esp + 0x20]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x4040f8
jmp 0x404159
lea eax, [ecx - 0x1c]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.00405380
mov edx, dword [ebx + 8]
lea eax, [edx - 0x1c]
cmp ebp, eax
je 0x40413e
sub eax, 0x1c
sub edx, 0x1c
mov ecx, 7
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x404129
lea eax, [ebp + 0x1c]
cmp ebp, eax
je 0x404159
mov edi, ebp
add ebp, 0x1c
mov ecx, 7
lea esi, [esp + 0x20]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x404145
add dword [ebx + 8], 0x1c
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, ebx
call fcn.00404f80
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x403f2b
mov eax, dword [esp + 0x40]
mov dword [ebx + 0xa4], edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebx + 0xb0]
cmp eax, edi
je 0x4041c9
mov ecx, dword [ebx + 0xb4]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
jne 0x403dc7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8