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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54af16
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [0x5c6f90]
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], eax
call dword [0x55a6c4]
mov dword [esp + 0x268], 0
lea ecx, [esp + 0x18]
call dword [0x55a6c4]
mov byte [esp + 0x268], 1
push 0
lea ecx, [esp + 0x90]
call sub.libImage.module_public:_void___thiscall_CxImage::constructor_unsigned_long_int_
mov byte [esp + 0x268], 2
cmp dword [ebx + 0x24], 0
je 0x51084f
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
add ecx, esi
cmp esi, ecx
jbe 0x510246
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [ebx + 8]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
call fcn.00413720
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
push ecx
lea ecx, [eax + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x51027a
mov ecx, ebx
call fcn.005108d0
jmp 0x51084f
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x78]
push 0
lea ecx, [esp + 0x30]
push ecx
push 9
push 2
add eax, 8
push 0xcb
push eax
mov dword [esp + 0x60], eax
call sub.mfc90u.dll_CWnd::InvokeHelper
mov eax, dword [esp + 0x44]
xor ecx, ecx
add esp, 0x18
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], ecx
cmp eax, ecx
jne 0x5102c2
push esi
push edi
push ecx
push ecx
lea esi, [ecx + 2]
jmp 0x510849
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x20]
push ecx
push 0x55aa20
push eax
call edx
test eax, eax
jge 0x5102e7
push esi
push edi
push 0
push 0
mov esi, 2
jmp 0x510849
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push 0x55aa30
push eax
mov eax, dword [ecx]
call eax
test eax, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
jge 0x510336
mov edx, dword [ecx + 8]
push eax
call edx
push esi
push edi
push 0
push 0
push ebx
mov esi, 2
call fcn.0050f800
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x8c]
call fcn.0043a5e0
jmp 0x51087a
lea edx, [esp + 0x68]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
test eax, eax
jl 0x51035f
mov ecx, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov edx, dword [esp + 0x68]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esp + 0x2c]
push eax
mov edi, str.meta
call fcn.0050f4e0
mov byte [esp + 0x268], 3
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp eax, edi
je 0x510384
mov eax, dword [eax]
jmp 0x510386
xor eax, eax
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
lea esi, [esp + 0x44]
push esi
push eax
mov eax, dword [edx + 0xbc]
push ecx
call eax
test eax, eax
jl 0x5105a4
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x64]
mov dword [esp + 0x64], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp dword [esp + 0x64], edi
jle 0x510598
mov ecx, 0x16
mov word [esp + 0x54], cx
mov dword [esp + 0x5c], edi
mov byte [esp + 0x268], 4
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x268], 5
mov eax, 1
cmp ax, word [esp + 0x34]
je 0x510410
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jl 0x510539
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
lea eax, [esp + 0x30]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x4c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x50]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x54]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x68]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x7c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x80]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x84]
push ecx
mov ecx, dword [edx + 0x2c]
mov dword [eax + 0xc], esi
call ecx
test eax, eax
jl 0x510508
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x4c]
push ecx
push 0x55a9d0
push eax
call edx
test eax, eax
jl 0x5104fc
lea ecx, [esp + 0x1c]
call dword [0x55a6c4]
mov byte [esp + 0x268], 6
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push 2
push str.name
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp word [esp + 0x6c], 8
jne 0x5104de
mov esi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_4]
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x20]
call esi
push str.description
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
je 0x51053f
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x268], 5
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x268], 4
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x34]
push eax
call esi
mov byte [esp + 0x268], 3
lea ecx, [esp + 0x54]
push ecx
call esi
inc edi
cmp edi, dword [esp + 0x64]
jl 0x5103c2
jmp 0x510598
push eax
call fcn.00531580
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x7c]
push ecx
push 2
push str.content
push eax
call edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
call esi
mov byte [esp + 0x268], 5
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x268], 4
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x34]
push ecx
call esi
mov byte [esp + 0x268], 3
lea edx, [esp + 0x54]
push edx
call esi
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x268], 2
lea edi, [esp + 0x2c]
call fcn.0050f580
lea eax, [esp + 0x24]
call fcn.00413720
test byte [eax + 0x18], 1
je 0x510830
mov ecx, dword [esp + 0x48]
call fcn.0050f4c0
mov dword [esp + 0x1c], 0
test eax, eax
je 0x51062f
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x1c]
push ecx
push 0x55aa20
push eax
call edx
test eax, eax
jl 0x51062f
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x20]
push ecx
push 0x55aa50
push eax
call edx
test eax, eax
jge 0x510661
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push 0
push 0
push ebx
mov esi, 2
call fcn.0050f800
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x8c]
call fcn.0043a5e0
jmp 0x51087a
push 0
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x34]
mov edi, eax
call sub.mfc90u.dll_CDC::CDC
mov byte [esp + 0x268], 7
push edi
lea ecx, [esp + 0x38]
call sub.mfc90u.dll_CDC::Attach
lea ecx, [esp + 0x54]
call sub.mfc90u.dll_CDC::CDC
mov byte [esp + 0x268], 8
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x38]
call fcn.004084a0
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CDC::Detach
push 0x44c
push 0x514
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test esi, esi
jne 0x51073a
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push 0
push 0
push ebx
mov esi, 2
call fcn.0050f800
mov byte [esp + 0x268], 7
lea ecx, [esp + 0x54]
call fcn.00531c20
mov byte [esp + 0x268], 2
lea ecx, [esp + 0x34]
call fcn.00531c20
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x8c]
call fcn.0043a5e0
jmp 0x51087a
lea edx, [esp + 0x54]
push edx
mov eax, esi
call fcn.00511fb0
xor ecx, ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x68]
push ecx
push edi
push 0
push 0
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x40]
push 1
mov dword [esp + 0x98], 0x514
mov dword [esp + 0x9c], 0x44c
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 1
push eax
call edx
test eax, eax
jl 0x5106c5
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x54]
push edx
call fcn.00511fb0
push 0
push esi
lea ecx, [esp + 0x94]
call sub.libImage.module_public:_bool___thiscall_CxImage::CreateFromHBITMAP_struct_HBITMAP_____struct_HPALETTE____
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0
push 0x400
push 0x500
push 0
push 0
lea ecx, [esp + 0xa0]
call sub.libImage.module_public:_bool___thiscall_CxImage::Crop_long_int__long_int__long_int__long_int__class_CxImage__
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea esi, [esp + 0x94]
call fcn.0050f940
add esp, 8
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [esp + 0x268], 7
lea ecx, [esp + 0x54]
call fcn.00531c20
mov byte [esp + 0x268], 2
lea ecx, [esp + 0x34]
call fcn.00531c20
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov esi, 1
push ebx
call fcn.0050f800
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], vtable.CxImage.0
call sub.libImage.module_public:_bool___thiscall_CxImage::DestroyFrames_void_
lea ecx, [esp + 0x8c]
call fcn.0053195c
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x268], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00532776
mov esp, ebp
pop ebp
ret