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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8e68
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004a19a0
mov ecx, esi
mov ebx, eax
call fcn.004a19d0
mov ebp, dword [esp + 0x6c]
test ebp, ebp
jne 0x4a1b36
mov ebp, ebx
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x4a1b40
mov ecx, eax
mov edi, dword [esp + 0x64]
test edi, edi
jl 0x4a1d40
cmp edi, ebp
jge 0x4a1d40
cmp ebp, ebx
jg 0x4a1d40
mov edx, dword [esp + 0x68]
test edx, edx
jl 0x4a1d40
cmp edx, ecx
jge 0x4a1d40
cmp ecx, eax
jg 0x4a1d40
mov eax, dword [esi + 4]
sub ecx, edx
sub ebp, edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x6c], edi
je 0x4a1d40
lea ecx, [esp + 0x38]
call fcn.004ab6a4
mov eax, dword [esp + 0x58]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x50], ebx
jne 0x4a1bac
xor eax, eax
jmp 0x4a1baf
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::Attach
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x4a1bd9
mov eax, dword [esp + 0x3c]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
jmp 0x4a1bdd
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
lea eax, [ecx + ebp - 1]
cdq
idiv ebp
mov ecx, eax
lea eax, [edi + ebx - 1]
cdq
idiv edi
test ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
jle 0x4a1d14
mov esi, dword [esp + 0x5c]
mov edx, ebp
mov ecx, esi
mov edi, esi
neg edx
neg ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x34], edx
jmp 0x4a1c2d
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x4a1cf9
lea edx, [edi + ebp]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
lea edx, [ecx + ebx]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x74]
add esi, edx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x6c]
neg esi
jmp 0x4a1c5d
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x28]
add eax, ecx
cmp eax, edx
mov dword [esp + 0x30], eax
jle 0x4a1c75
mov dword [esp + 0x10], ebx
jmp 0x4a1c7d
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
lea eax, [edi + ebp]
cmp eax, edx
jle 0x4a1c9a
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
add edx, eax
mov eax, dword [esp + 0x74]
add edx, eax
jmp 0x4a1c9c
mov edx, ebp
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebp
mov ebp, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x6c]
push ebp
push eax
mov eax, dword [esp + 0x20]
push eax
push edx
push ecx
mov ecx, dword [esp + 0x74]
push edi
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
add ebx, esi
dec eax
mov dword [esp + 0x14], eax
jne 0x4a1c59
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
add edi, ebp
add eax, edx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x4a1c29
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a1d28
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov eax, 1
jmp 0x4a1d42
xor eax, eax
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 0x24