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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b9b48
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004a25d0
mov ecx, esi
mov ebx, eax
call fcn.004a2600
mov ebp, dword [esp + 0x6c]
test ebp, ebp
jne 0x4a2766
mov ebp, ebx
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x4a2770
mov ecx, eax
mov edi, dword [esp + 0x64]
test edi, edi
jl 0x4a2970
cmp edi, ebp
jge 0x4a2970
cmp ebp, ebx
jg 0x4a2970
mov edx, dword [esp + 0x68]
test edx, edx
jl 0x4a2970
cmp edx, ecx
jge 0x4a2970
cmp ecx, eax
jg 0x4a2970
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 0x4a2970
lea ecx, [esp + 0x38]
call fcn.004ac2d4
mov eax, dword [esp + 0x58]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x50], ebx
jne 0x4a27dc
xor eax, eax
jmp 0x4a27df
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 0x4a2809
mov eax, dword [esp + 0x3c]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
jmp 0x4a280d
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 0x4a2944
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 0x4a285d
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x4a2929
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 0x4a288d
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 0x4a28a5
mov dword [esp + 0x10], ebx
jmp 0x4a28ad
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
lea eax, [edi + ebp]
cmp eax, edx
jle 0x4a28ca
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
add edx, eax
mov eax, dword [esp + 0x74]
add edx, eax
jmp 0x4a28cc
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 0x4a2889
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 0x4a2859
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a2958
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 0x4a2972
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