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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dc480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, ecx
push esi
lea eax, [esp + 0x54]
mov ecx, dword [ebx + 0x1c]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
sub edi, esi
lea esi, [ebx + 0x68]
sub eax, edx
mov dword [esp + 0x1c], edi
test esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], esi
je 0x49a564
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x49a744
lea ecx, [esp + 0x48]
call fcn.004ac979
mov ebx, dword [ebp + 8]
mov dword [esp + 0x80], 0
test ebx, ebx
jne 0x49a583
xor eax, eax
jmp 0x49a586
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x4c]
call fcn.004aca30
test eax, eax
je 0x49a72a
mov edx, dword [esp + 0xc]
mov eax, dword [ebx + 4]
push edi
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, esi
call fcn.004ad677
test eax, eax
je 0x49a72a
test esi, esi
jne 0x49a5c7
xor eax, eax
jmp 0x49a5ca
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
call fcn.004acba9
mov ecx, dword [0x518510]
xor ebx, ebx
cmp ecx, 8
mov dword [esp + 0x28], eax
setle bl
dec ebx
mov dword [esp + 0x10], 0
and ebx, 0xfffffffd
add ebx, 4
test edi, edi
jle 0x49a715
mov eax, ebx
mov dword [esp + 0x14], edi
neg eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xc]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x18], esi
jle 0x49a6f1
fild dword [esp + 0x10]
mov edi, dword [esp + 0x14]
sub edi, ebx
fidiv dword [esp + 0x1c]
fstp qword [esp + 0x34]
fild dword [esp + 0xc]
fstp qword [esp + 0x3c]
fild dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
fdiv qword [esp + 0x44]
push 0x3fe00000
push 0
sub esp, 8
fstp qword [esp]
call fcn.0044e410
mov ecx, dword [0x518510]
add esp, 0x18
cmp ecx, 8
push eax
jle 0x49a678
mov ecx, dword [esp + 0x50]
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_SetPixelV]
jmp 0x49a6d7
lea ecx, [esp + 0x30]
call fcn.004ad734
lea eax, [edi + ebx]
lea edx, [esi + ebx]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x2c]
neg eax
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x30]
sbb eax, eax
lea ecx, [esp + 0x68]
and eax, edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], edi
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 1
call fcn.004ad6ce
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0xc]
add esi, ebx
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x49a636
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add ecx, ebx
add esi, eax
cmp ecx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
jl 0x49a60a
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49a71c
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.004acba9
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x48]
mov dword [esp + 0x80], 0xffffffff
call fcn.004acaae
mov eax, dword [esp + 0xc]
jmp 0x49a747
mov ebx, dword [ebp + 8]
test esi, esi
je 0x49a74e
mov esi, dword [esi + 4]
mov ecx, dword [ebx + 4]
push 4
push edi
push eax
push 0
push 0
push 0
push esi
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_DrawStateA]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4