Function at 0x4f0a50
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x54a19b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.0042e4c0
mov dword [esp + 0x30], vtable.CBitmap.0
xor edi, edi
mov dword [esp + 0x94], edi
call fcn.005358e8
mov eax, dword [eax + 0xc]
push 0x10f
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x34]
call fcn.005228a5
lea ecx, [esp + 0x30]
call fcn.005228d2
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
push edi
mov ecx, esi
call fcn.00473cb0
mov ebx, dword [esp + 0xa0]
lea ecx, [esp + 0x10]
push 4
push ecx
push edi
mov ecx, ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.00473cb0
lea ecx, [ebp + 0xa0]
mov dword [ecx + 0x10], edi
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x4f0afb
xor edx, edx
jmp 0x4f0afe
mov edx, dword [ebx + 8]
push eax
push edx
call fcn.00473d50
mov ebx, dword [esi + 0x10]
mov edx, dword [ebp + 0x78]
push 0xffff0000
push edi
shr ebx, 2
push 0x1101
push edx
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
lea ecx, [esp + 0x64]
call fcn.005225fd
lea ecx, [esp + 0x40]
mov byte [esp + 0x94], 1
call fcn.00521d65
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x60]
neg eax
sbb eax, eax
mov byte [esp + 0x94], 2
and eax, edi
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call edi
push eax
lea ecx, [esp + 0x44]
call fcn.00521e1c
push 0xc0c0c0
lea ecx, [esp + 0x3c]
call fcn.00522962
lea eax, [esp + 0x38]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x98], 3
call fcn.00521f9a
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], eax
call fcn.00521d65
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x60]
neg eax
sbb eax, eax
mov byte [esp + 0x94], 4
and eax, edx
push eax
call edi
push eax
lea ecx, [esp + 0x54]
call fcn.00521e1c
lea edi, [ebp + 0x11c]
mov ecx, edi
call fcn.00517a18
push 1
push 0
push 0x21
push 0x18
push 0x18
mov ecx, edi
call fcn.00517a61
xor edi, edi
test ebx, ebx
jle 0x4f0d5d
jmp 0x4f0bed
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], vtable.CBitmap.0
mov ecx, dword [esp + 0x64]
push 0x18
push 0x18
push ecx
mov byte [esp + 0xa0], 5
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x24]
call fcn.005228a5
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x44]
push eax
push edx
call fcn.00521f47
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
push eax
call fcn.00522890
test eax, eax
je 0x4f0c4e
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call fcn.00521f47
mov edx, dword [esp + 0x44]
push 0xf00021
push 0x18
push 0x18
push 0
push 0
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_PatBlt]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x74]
push eax
push 0x18
mov edx, dword [ecx + edi*4]
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [esp + 0x7c]
mov eax, 0x18
sub eax, ebx
lea ecx, [esp + 0x50]
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
mov esi, eax
mov eax, 0x18
sub eax, edx
push 0xcc0020
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
sar esi, 1
sar eax, 1
neg ecx
sbb ecx, ecx
push 0
and ecx, edx
mov edx, dword [esp + 0x4c]
push 0
push ecx
mov ecx, dword [esp + 0x88]
push ebx
push ecx
push esi
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4f0ce4
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.00521f47
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f0cfa
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call fcn.00521f47
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
push 0xc0c0c0
and eax, edx
mov edx, dword [ebp + 0x120]
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 6
call fcn.005228fc
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
mov byte [esp + 0x94], 4
jl 0x4f0be6
mov esi, dword [esp + 0x9c]
mov ebx, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push eax
call fcn.00521f9a
mov edi, dword [ebp + 0xd0]
cmp edi, ebx
jge 0x4f0e64
mov dword [esp + 0x10], edi
push 0x70
call fcn.0051a826
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
xor edi, edi
mov byte [esp + 0x94], 7
cmp esi, edi
je 0x4f0e08
mov ecx, esi
call fcn.0051aedf
mov dword [esi], vtable.CButton.0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x94], 8
call fcn.00495ff0
lea ecx, [esi + 0x44]
mov byte [esp + 0x94], 9
call fcn.00495ff0
lea ecx, [esi + 0x4c]
mov byte [esp + 0x94], 0xa
call fcn.00495ff0
lea ecx, [esi + 0x54]
mov byte [esp + 0x94], 0xb
call fcn.00495ff0
mov eax, 1
mov dword [esi], 0x54da00
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], 0xffffffff
mov dword [esi + 0x6c], edi
jmp 0x4f0e0a
xor esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push edi
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x24]
mov byte [esp + 0x98], 4
lea ecx, [edi + 0x4289]
push ecx
push ebp
push edx
mov ecx, esi
call fcn.0040ca70
mov eax, dword [ebp + 0xd0]
lea ecx, [ebp + 0xc8]
push esi
push eax
call fcn.00518b9e
inc edi
cmp edi, ebx
mov dword [esp + 0x10], edi
jl 0x4f0d7d
mov esi, dword [esp + 0x9c]
jmp 0x4f0ea0
jle 0x4f0ea0
mov eax, ebx
cmp ebx, edi
mov dword [esp + 0x10], eax
jge 0x4f0e91
mov ecx, dword [ebp + 0xcc]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x4f0e88
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x4f0e70
sub edi, ebx
lea ecx, [ebp + 0xc8]
push edi
push ebx
call fcn.00518cb7
xor edi, edi
test ebx, ebx
jle 0x4f0ee9
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0xcc]
push 0
push 0
mov ecx, dword [eax + edi*4]
push 0
push ecx
mov ecx, dword [edx + edi*4]
call fcn.0040caa0
mov eax, dword [ebp + 0xcc]
push 0
mov ecx, dword [eax + edi*4]
call fcn.0040d250
inc edi
cmp edi, ebx
jl 0x4f0ea6
test ebx, ebx
jle 0x4f0ee9
mov ecx, dword [ebp + 0xcc]
push 1
mov ecx, dword [ecx]
call fcn.0040d250
lea esi, [ebp + 0xb4]
mov ecx, esi
call fcn.00473690
push 0xffffffffffffffff
mov ecx, esi
call fcn.00473750
mov esi, 1
cmp ebx, esi
jle 0x4f0f66
mov edx, dword [ebp + 0xa8]
mov eax, dword [edx + esi*4]
mov edx, dword [0x599eec]
mov ecx, eax
and ecx, 0xffff
shr eax, 0x10
mov edx, dword [edx + ecx*4]
lea edi, [eax*8]
sub edi, eax
mov eax, dword [edx + 0x58]
mov eax, dword [eax + edi*8 + 0x14]
test al, 8
je 0x4f0f40
mov eax, 3
jmp 0x4f0f55
test eax, 0x200000
je 0x4f0f4e
mov eax, 2
jmp 0x4f0f55
xor eax, eax
test ecx, ecx
setne al
push eax
lea ecx, [ebp + 0xb4]
call fcn.00473750
inc esi
cmp esi, ebx
jl 0x4f0f08
push 1
mov ecx, ebp
call fcn.004f0ff0
lea ecx, [esp + 0x50]
mov byte [esp + 0x94], 3
call fcn.00521e84
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x94], 0xc
call fcn.005228fc
lea ecx, [esp + 0x40]
mov byte [esp + 0x94], 1
call fcn.00521e84
lea ecx, [esp + 0x60]
mov byte [esp + 0x94], 0
call fcn.0052266f
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0xd
call fcn.005228fc
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 8