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

Disassembly:
push 0xffffffffffffffff
push 0x471fcb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49fba8]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x3c], esi
xor edi, edi
cmp dword [esi + 0x6c], edi
je 0x422d48
mov ecx, dword [esi + 0x70]
cmp ecx, edi
je 0x422aad
call sub.MFC80U.DLL_Ordinal_1925
mov ecx, dword [esi + 0x70]
cmp ecx, edi
je 0x422aaa
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0x70], edi
push 8
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
cmp eax, edi
je 0x422ac6
mov dword [eax + 4], edi
mov dword [eax], vtable.CBitmap.0
jmp 0x422ac8
xor eax, eax
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x70], eax
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0x7c]
mov eax, dword [esi + 0x6c]
sub ebx, dword [esp + 0x74]
mov eax, dword [eax + 4]
mov ebp, dword [esp + 0x78]
sub ebp, dword [esp + 0x70]
lea edx, [esp + 0x84]
push edx
push 0x18
push eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], 0x28
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x50], 1
mov word [esp + 0x52], 0x18
call sub.MFC80U.DLL_Ordinal_347
mov eax, dword [esp + 0xac]
cmp eax, edi
mov dword [esp + 0xa4], edi
jne 0x422b6c
xor eax, eax
jmp 0x422b6f
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_1270
mov eax, dword [esp + 0x28]
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
push edi
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esi + 0x70]
push eax
call sub.MFC80U.DLL_Ordinal_1271
mov eax, dword [esi + 0x70]
cmp eax, edi
jne 0x422bac
xor eax, eax
jmp 0x422baf
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call sub.MFC80U.DLL_Ordinal_5633
mov edx, dword [esi]
mov edx, dword [edx + 0x140]
mov edi, eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x44], edi
mov dword [esi + 0xb0], 0
call edx
xor ecx, ecx
cmp dword [esp + 0x18], ecx
mov dword [esi + 0xb0], 1
je 0x422cfb
lea eax, [ebp + ebp*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
add eax, eax
cmp ebx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
jle 0x422cd7
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x18]
add ecx, edx
xor edi, edi
test ebp, ebp
jle 0x422cb1
mov eax, ebp
cmp edi, eax
mov edx, edi
jl 0x422c3b
mov edx, eax
mov esi, dword [esp + 0x1c]
cmp edx, esi
jl 0x422c45
mov edx, esi
mov esi, dword [esp + 0x14]
cmp edx, esi
jl 0x422c4f
mov edx, esi
cmp edx, 0xa
jl 0x422c59
mov edx, 0xa
imul edx, edx, 0x13
mov bl, dl
imul edx, edx, 0xff
not bl
movzx esi, bl
movzx ebx, byte [ecx]
imul ebx, esi
add ebx, edx
sar ebx, 8
mov byte [ecx], bl
movzx ebx, byte [ecx + 1]
add ecx, 1
imul ebx, esi
add ebx, edx
sar ebx, 8
mov byte [ecx], bl
movzx ebx, byte [ecx + 1]
add ecx, 1
imul ebx, esi
add ebx, edx
sar ebx, 8
mov byte [ecx], bl
add edi, 1
add ecx, 1
sub eax, 1
cmp edi, ebp
jl 0x422c33
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub dword [esp + 0x14], 1
add edx, 1
add ecx, eax
cmp edx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
jl 0x422c21
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x48]
push ecx
push edx
push ebx
push 0
push 0
push 0
push ebx
push ebp
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
test edi, edi
jne 0x422d03
xor eax, eax
jmp 0x422d06
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call sub.MFC80U.DLL_Ordinal_5633
lea ecx, [esp + 0x24]
call sub.MFC80U.DLL_Ordinal_1920
xor ecx, ecx
xor eax, eax
mov dword [esi + 0xac], ecx
lea ecx, [esp + 0x24]
mov dword [esi + 0x94], 1
mov dword [esi + 0xa8], eax
mov dword [esp + 0xa4], 0xffffffff
call sub.MFC80U.DLL_Ordinal_602
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4