Function at 0x477240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcea2
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x587614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push 0x3d0
mov dword [ebp - 0x44], eax
call sub.mfc140u.dll_operator_2
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x477299
push 0
mov ecx, eax
call sub.Imagelib17u.dll_public:_void___thiscall_CxImage::constructor_unsigned_int_
jmp 0x47729b
xor eax, eax
mov dword [ebx + 0x80], eax
mov edi, 1
mov eax, dword [0x58af80]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x40], eax
call sub.mfc140u.dll_AfxGetModuleState
push str.RT_RCDATA
push 0xf7
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x47759f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x47759f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x47739f
lea ecx, [ebp - 0x3c]
call sub.mfc140u.dll_CFile::CFile
push 0
push 0x1002
push dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], edi
call sub.mfc140u.dll_CFile::Open
push dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push esi
call sub.mfc140u.dll_CFile::Write
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
push 0
push 0
push 0
call dword [eax + 0x34]
push 0xa
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
call sub.mfc140u.dll_CFile::Read
cmp byte [ebp - 0x1c], 0
jne 0x477363
cmp byte [ebp - 0x1b], 0
mov word [ebp - 0x1c], 0x4b50
je 0x477369
mov word [ebp - 0x1c], 0
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
push 0
push 0
push 0
call dword [eax + 0x34]
push 2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
call sub.mfc140u.dll_CFile::Write
lea ecx, [ebp - 0x3c]
call sub.mfc140u.dll_CFile::Close
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.004b4f4e
jmp 0x4773a1
xor edi, edi
test edi, edi
je 0x47759f
push 0
push dword [0x58af80]
call fcn.0048d6f0
mov esi, eax
add esp, 8
test esi, esi
je 0x47759f
push dword [0x58af7c]
push 0
push esi
call fcn.0048dce0
add esp, 0xc
test eax, eax
jne 0x47759f
push esi
call fcn.0048cc30
add esp, 4
test eax, eax
jne 0x47759f
lea ecx, [ebp - 0x58]
call sub.mfc140u.dll_CFile::CFile
push 0
push 2
push dword [0x58af7c]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 2
call sub.mfc140u.dll_CFile::Open
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
push 0
push 0
push 0
call dword [eax + 0x34]
push 0xa
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x58]
call sub.mfc140u.dll_CFile::Read
cmp byte [ebp - 0x1c], 0
jne 0x47744a
cmp byte [ebp - 0x1b], 0
jne 0x47744a
cmp byte [ebp - 0x1a], 0
jne 0x47744a
cmp byte [ebp - 0x19], 0
mov dword [ebp - 0x1c], 0x474e5089
je 0x477451
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
push 0
push 0
push 0
call dword [eax + 0x34]
push 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x58]
call sub.mfc140u.dll_CFile::Write
lea ecx, [ebp - 0x58]
call sub.mfc140u.dll_CFile::Close
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.004b4f4e
mov ecx, dword [ebx + 0x80]
push 1
push dword [0x58af7c]
call sub.Imagelib17u.dll_public:_bool___thiscall_CxImage::Load_wchar_t_const___unsigned_int_
test al, al
je 0x47759f
push dword [0x58af80]
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink]
call esi
push dword [0x58af7c]
call esi
mov ecx, dword [ebx + 0x80]
add esp, 8
call sub.Imagelib17u.dll_public:_bool___thiscall_CxImage::AlphaIsValid_void_
test al, al
je 0x4774e8
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x20], 0xffffff
push dword [ebp - 0x20]
call sub.Imagelib17u.dll_public:_void___thiscall_CxImage::SetTransColor_struct_tagRGBQUAD_
mov ecx, dword [ebx + 0x80]
call sub.Imagelib17u.dll_public:_void___thiscall_CxImage::AlphaStrip_void_
mov ecx, dword [ebx + 0x80]
push 1
push 0
call sub.Imagelib17u.dll_public:_bool___thiscall_CxImage::Mirror_bool__bool_
mov ecx, dword [ebx + 0x80]
push 1
push 0
call sub.Imagelib17u.dll_public:_bool___thiscall_CxImage::Flip_bool__bool_
mov ecx, dword [ebx + 0x80]
call sub.Imagelib17u.dll_public:_bool___thiscall_CxImage::Negative_void_
mov ecx, dword [ebx + 0x80]
lea eax, [ebp - 0x24]
push 1
push 1
push 1
push eax
call sub.Imagelib17u.dll_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColor_int__int__bool_
cmp byte [ebp - 0x22], 0xdb
jne 0x47759f
mov eax, dword [ebp - 0x24]
test ah, ah
jne 0x47759f
test al, al
jne 0x47759f
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x477543
mov dword [ebp - 0x20], eax
jmp 0x477549
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x20], eax
call sub.mfc140u.dll_AfxGetModuleState
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ecx, dword [ebx + 0x80]
mov esi, eax
mov edi, dword [ebx]
push 0
push 0
push dword [ebp - 0x20]
call sub.Imagelib17u.dll_public:_unsigned_int___thiscall_CxImage::GetHeight_void_const
mov ecx, dword [ebx + 0x80]
push eax
call sub.Imagelib17u.dll_public:_unsigned_int___thiscall_CxImage::GetWidth_void_const
push eax
push 0
push 0
push 0x90000000
push 0
push 0
push 0
push esi
push 0
call sub.mfc140u.dll_AfxRegisterWndClass
push eax
push 0
mov ecx, ebx
call dword [edi + 0x64]
jmp 0x4775a1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b61c2
mov esp, ebp
pop ebp
ret 4