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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4308a4
mov eax, dword fs:[0]
push eax
sub esp, 0x244
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483644]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x18]
lea ecx, [esi + 0x1a4]
push eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_class_wxImage___thiscall_wxBitmap::ConvertToImage_void_]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov dword [esp + 0x264], 0
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_class_wxPoint___thiscall_wxWindowBase::GetPosition_void_]
mov esi, dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_bool___thiscall_wxImage::IsOk_void_const]
lea ecx, [esp + 0x18]
call esi
test al, al
je 0x4225d3
lea ecx, [esp + 0x18]
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_unsigned_char____thiscall_wxImage::GetAlpha_void_const]
test eax, eax
mov dword [esp + 0x34], eax
je 0x4225d3
lea ecx, [esp + 0x18]
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_unsigned_char____thiscall_wxImage::GetData_void_const]
mov edi, eax
test edi, edi
je 0x4225d3
lea ecx, [esp + 0x154]
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_void___thiscall_wxScreenDC::constructor_void_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x260], 1
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_void___thiscall_wxMemoryDC::constructor_void_]
mov ebx, dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_int___thiscall_wxImage::GetHeight_void_const]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov byte [esp + 0x264], 2
call ebx
mov ebp, dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_int___thiscall_wxImage::GetWidth_void_const]
push eax
lea ecx, [esp + 0x20]
call ebp
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_void___thiscall_wxBitmap::constructor_int__int__int_]
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x150]
mov byte [esp + 0x264], 3
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_void___thiscall_wxMemoryDCBase::SelectObject_class_wxBitmap__]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 5
push eax
push ecx
lea edx, [esp + 0x16c]
push edx
lea ecx, [esp + 0x34]
call ebx
push eax
lea ecx, [esp + 0x38]
call ebp
push eax
push 0
push 0
lea ecx, [esp + 0x78]
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_bool___thiscall_wxDCBase::Blit_int__int__int__int__class_wxDC___int__int__int__bool__int__int_]
mov eax, dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_class_wxBitmap_wxNullBitmap]
push eax
lea ecx, [esp + 0x150]
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_void___thiscall_wxMemoryDCBase::SelectObject_class_wxBitmap__]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x42258f
cmp dword [eax + 0x14], 0
je 0x42258f
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_class_wxImage___thiscall_wxBitmap::ConvertToImage_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 4
call esi
test al, al
je 0x422574
lea ecx, [esp + 0x2c]
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_unsigned_char____thiscall_wxImage::GetData_void_const]
mov esi, eax
test esi, esi
je 0x422574
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call ebx
test eax, eax
jle 0x42251a
jmp 0x422430
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
call ebp
test eax, eax
jle 0x422505
mov ecx, dword [esp + 0x34]
mov al, byte [ecx]
movzx edx, byte [edi]
movzx ebp, al
add ecx, 1
imul edx, ebp
mov dword [esp + 0x34], ecx
movzx ecx, byte [esi]
mov ebx, 0xff
sub ebx, ebp
imul ecx, ebx
add ecx, edx
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi], al
movzx ecx, byte [esi + 1]
movzx edx, byte [edi + 1]
imul ecx, ebx
add esi, 1
imul edx, ebp
add edi, 1
add ecx, edx
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi], al
movzx ecx, byte [esi + 1]
movzx edx, byte [edi + 1]
imul ecx, ebx
add esi, 1
imul edx, ebp
add edi, 1
mov ebx, dword [esp + 0x20]
add ecx, edx
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi], al
add ebx, 1
lea ecx, [esp + 0x18]
add edi, 1
add esi, 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_int___thiscall_wxImage::GetWidth_void_const]
cmp ebx, eax
jl 0x422446
mov ebx, dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_int___thiscall_wxImage::GetHeight_void_const]
mov ebp, dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public:_int___thiscall_wxImage::GetWidth_void_const]
add dword [esp + 0x28], 1
lea ecx, [esp + 0x18]
call ebx
cmp dword [esp + 0x28], eax
jl 0x422430
mov dword [esp + 0x24], 0
mov ecx, dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_const_wxBitmap::vftable]
push 0xffffffffffffffff
lea edx, [esp + 0x30]
mov dword [esp + 0x24], ecx
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x268], 5
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_protected:_bool___thiscall_wxBitmap::CreateFromImage_class_wxImage_const___int_]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
cmp ecx, eax
mov byte [esp + 0x260], 6
je 0x422562
mov edx, eax
push edx
call dword [sym.imp.wxbase28u_vc_8_EFI.dll_public:_void___thiscall_wxObject::Ref_class_wxObject_const__]
lea ecx, [esp + 0x20]
mov byte [esp + 0x260], 4
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public_virtual:_void___thiscall_wxBitmap::destructor_void_]
mov eax, dword [sym.imp.wxbase28u_vc_8_EFI.dll_const_wxObject::vftable]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 3
mov dword [esp + 0x2c], eax
call dword [sym.imp.wxbase28u_vc_8_EFI.dll_public:_void___thiscall_wxObject::UnRef_void_]
lea ecx, [esp + 0x38]
mov byte [esp + 0x260], 2
call dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public_virtual:_void___thiscall_wxBitmap::destructor_void_]
mov ecx, dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_const_wxMemoryDCBase::vftable]
mov esi, dword [sym.imp.wxmsw28u_core_vc_8_EFI.dll_public_virtual:_void___thiscall_wxDC::destructor_void_]
mov dword [esp + 0x14c], ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x260], 1
call esi
lea ecx, [esp + 0x154]
mov byte [esp + 0x260], 0
call esi
mov edx, dword [sym.imp.wxbase28u_vc_8_EFI.dll_const_wxObject::vftable]
lea ecx, [esp + 0x18]
mov dword [esp + 0x260], 0xffffffff
mov dword [esp + 0x18], edx
call dword [sym.imp.wxbase28u_vc_8_EFI.dll_public:_void___thiscall_wxObject::UnRef_void_]
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret