Function at 0x401690
Capabilities:
Resolve function by parsing pe exports

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.00401bd0
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebx + 0x80], eax
jne 0x4016c9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x44]
mov edi, 0x40e1fc
mov dword [ebx + 0x4c], ecx
mov ecx, 3
mov esi, eax
xor edx, edx
mov dword [ebx + 0x7c], eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401802
lea edx, [eax + 3]
mov ecx, 3
mov edi, 0x40e1f8
mov esi, edx
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x401714
mov esi, edx
mov ecx, 3
mov edi, 0x40e1f4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401802
mov esi, dword [esp + 0x40]
mov dword [ebx + 0x80], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x401747
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 + 0x78]
push esi
push 0x40bb44
push 0
push ecx
push edx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40177c
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 + 0x40], eax
call edi
mov edx, dword [esp + 0x1c]
push eax
push edx
call ebp
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x20]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x40]
push edx
push eax
mov ecx, ebx
call fcn.00402880
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
lea esi, [eax + 6]
xor ecx, ecx
mov dword [ebx + 0x58], 1
mov dword [ebx + 0x84], esi
mov cl, byte [esi + 4]
mov eax, ecx
sar eax, 7
cmp eax, 1
jne 0x401846
fld qword [0x40b5b0]
and ecx, 7
inc ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
call sub.MSVCRT.dll__CIpow
fmul qword [0x40b5a8]
call sub.MSVCRT.dll__ftol
mov dword [ebx + 0x54], eax
xor ecx, ecx
xor edx, edx
mov cx, word [esi]
xor edi, edi
mov dword [ebx + 0x40], ecx
mov dx, word [esi + 2]
mov ecx, ebx
mov dword [ebx + 0x44], edx
xor esi, esi
call fcn.00401e30
mov ecx, ebx
call fcn.00401e40
test eax, eax
je 0x40187d
mov ecx, ebx
inc esi
call fcn.00401e40
test eax, eax
jne 0x40186d
cmp esi, edi
jne 0x40189a
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x80], edi
push eax
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 0x40190c
mov esi, dword [esp + 0x40]
mov dword [ebx + 0x80], edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x4018cd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
lea edx, [ebx + 0x78]
push edx
push 0x40bb44
push edi
push eax
push ecx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x401901
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4017e9
mov ecx, ebx
call fcn.00401e30
lea edx, [esp + 0x38]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, ebx
call fcn.004025f0
mov esi, eax
cmp esi, edi
je 0x401b86
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], edi
push ecx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x40195f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x401b5a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x20]
push edx
push 0x40bb44
push edi
push eax
push ecx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
test eax, eax
mov eax, dword [esp + 0x44]
je 0x40198d
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x401b5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebx + 0x90]
mov esi, dword [ebx + 0x94]
add ebx, 0x88
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 0x401a92
mov eax, dword [ebx + 4]
test eax, eax
je 0x4019e8
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
mov esi, edx
ja 0x4019ed
mov esi, 1
mov ecx, ebx
call fcn.00402a70
mov edi, eax
add edi, esi
mov eax, edi
jns 0x4019fe
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.00402ad0
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.00402b10
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
add edx, 0x1c
mov ecx, ebx
push edx
push eax
push ebp
call fcn.00402ad0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.00402aa0
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.00402a70
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 0x401b56
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 0x401b07
lea edx, [ebp + 0x1c]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.00402ad0
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.00402b10
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x401b52
mov edi, ebp
add ebp, 0x1c
mov ecx, 7
lea esi, [esp + 0x20]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x401af1
jmp 0x401b52
lea eax, [ecx - 0x1c]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.00402ad0
mov edx, dword [ebx + 8]
lea eax, [edx - 0x1c]
cmp ebp, eax
je 0x401b37
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 0x401b22
lea eax, [ebp + 0x1c]
cmp ebp, eax
je 0x401b52
mov edi, ebp
add ebp, 0x1c
mov ecx, 7
lea esi, [esp + 0x20]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x401b3e
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.004025f0
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x40193d
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x80], edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebx + 0x8c]
cmp eax, edi
je 0x401bc2
mov ecx, dword [ebx + 0x90]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
jne 0x4017e9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8