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

Disassembly:
sub esp, 0x60
xor eax, eax
push ebx
mov dword [esp + 0x38], eax
push ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
push esi
lea ecx, [esp + 0x3c]
push edi
mov dword [esp + 0x4c], eax
push ecx
mov dword [esp + 0x54], eax
push 0x18
push ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
push 0x34
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
xor eax, eax
mov ecx, 0xd
push eax
mov edi, ebx
push eax
push eax
rep stosd dword es:[edi], eax
push str.DISPLAY
mov dword [esp + 0x34], ebx
mov dword [ebx], 0x28
call dword [sym.imp.GDI32.dll_CreateICA]
mov edx, dword [esp + 0x48]
push 0
push ebx
push 0
push edx
mov esi, eax
push 0
push ebp
push esi
mov dword [esp + 0x90], esi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [ebx + 0x14]
add eax, 4
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
cmp word [ebx + 0xe], 8
mov edi, eax
mov dword [esp + 0x30], edi
jne 0x4159bd
push 0x428
call sub.MFC42.DLL_operatornew
mov ecx, 0xb
mov esi, ebx
mov edi, eax
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_operatordelete
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x7c]
add esp, 8
mov ecx, dword [ebx + 8]
push 0
push ebx
push edi
push ecx
push 0
push ebp
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea edx, [esp + 0x58]
push edx
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_GetObjectA]
mov si, word [ebx + 0xe]
mov al, byte [esp + 0x78]
mov cl, byte [esp + 0x7a]
cmp si, 0x10
mov byte [esp + 0x78], cl
mov byte [esp + 0x7a], al
jne 0x415a28
mov dl, byte [esp + 0x79]
mov ecx, dword [esp + 0x78]
and eax, 0xf8
and edx, 0xfc
shl eax, 5
or eax, edx
and ecx, 0xff
shl eax, 3
shr ecx, 3
or eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov edx, esi
mov ecx, eax
mov esi, dword [ebx + 8]
and cl, 3
mov dword [esp + 0x28], 0
shr edx, 3
neg cl
sbb ecx, ecx
and al, 0xfc
neg ecx
mov byte [esp + 0x74], dl
mov byte [esp + 0x13], 0
lea ecx, [eax + ecx*4]
lea eax, [esi - 1]
imul eax, ecx
add eax, edi
lea edi, [esi + 2]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
and eax, 0xff
mov dword [esp + 0x34], eax
imul eax, dword [ebx + 4]
shl edi, 4
add eax, ecx
push edi
mov dword [esp + 0x40], eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, edi
xor eax, eax
mov edi, ebp
lea edx, [ebp + 0x20]
add esp, 4
mov dword [esp + 0x20], edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x18], 0
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp], 0x20
mov dword [ebp + 4], 1
mov eax, dword [ebx + 8]
test eax, eax
jle 0x415cdf
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x415c23
lea eax, [esi + 2]
shl eax, 4
xor ecx, ecx
mov cx, word [ebx + 0xe]
add ecx, 0xfffffff8
cmp ecx, 0x18
ja case.0x415af8.12
xor edx, edx
mov dl, byte [ecx + 0x415d30]
jmp dword [edx*4 + 0x415d1c]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [edx]
mov edx, dword [esp + 0x78]
cmp dword [ebx + ecx*4 + 0x28], edx
jmp 0x415b3d
mov edx, dword [esp + 0x14]
mov cx, word [esp + 0x78]
cmp word [edx], cx
jmp 0x415b3d
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x78]
and edx, 0xffffff
cmp edx, ecx
jmp 0x415b3d
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
cmp dword [edx], ecx
setne byte [esp + 0x74]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
add edx, ecx
mov cl, byte [esp + 0x13]
test cl, cl
mov cl, byte [esp + 0x74]
mov dword [esp + 0x14], edx
je 0x415bfe
test cl, cl
jne 0x415c0f
mov edx, dword [esp + 0x18]
lea ecx, [edx + 1]
mov edx, dword [ebp + 8]
shl edx, 4
add edx, edi
mov edi, dword [esp + 0x28]
mov dword [edx], edi
mov edi, dword [esp + 0x18]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 8]
inc edx
mov ecx, edx
mov dword [ebp + 8], edx
cmp ecx, esi
jb 0x415bf3
add eax, 0x280
add esi, 0x28
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov ebx, eax
add ecx, 2
mov esi, ebp
shl ecx, 4
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
lea edi, [ebx + 0x20]
mov ebp, ebx
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x20], edi
mov byte [esp + 0x13], 0
jmp 0x415c0f
mov edi, dword [esp + 0x20]
mov byte [esp + 0x13], 0
jmp 0x415c0f
test cl, cl
je 0x415c0f
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x13], 1
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
inc ecx
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jl 0x415ae2
mov al, byte [esp + 0x13]
test al, al
je 0x415cbd
mov al, byte [esp + 0x74]
test al, al
je 0x415cbd
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
shl ecx, 4
lea eax, [edx + 1]
mov edx, dword [esp + 0x28]
add ecx, edi
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 8]
inc ecx
mov eax, ecx
mov dword [ebp + 8], ecx
cmp eax, esi
jb 0x415cb8
add esi, 0x28
mov dword [esp + 0x2c], esi
add esi, 2
shl esi, 4
push esi
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov dword [esp + 0x3c], eax
add ecx, 2
mov edi, eax
shl ecx, 4
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
add esp, 8
lea edi, [ebp + 0x20]
mov dword [esp + 0x20], edi
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x415ac9
mov edx, dword [esp + 0x30]
push edx
call sub.MFC42.DLL_operatordelete
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp + 8]
add esp, 8
add eax, 2
shl eax, 4
push ebp
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
push ebp
mov esi, eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8