Function at 0x4a0d40
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov eax, 0x3000c
call fcn.00535460
fild dword [0x160d4dc]
push ebx
push ebp
push esi
push edi
push 0x447a0000
push 0xc47a0000
push 0
mov ecx, 0xc000
sub esp, 8
mov eax, 0x80808080
lea edi, [esp + 0x30]
fstp dword [esp + 4]
fild dword [0x160d4d8]
rep stosd dword es:[edi], eax
fstp dword [esp]
mov eax, dword [0x160d4dc]
mov ecx, dword [0x160d4d8]
push 0
push eax
push ecx
push 0
push 0
call fcn.004cd350
push str.________profiling_DrawBackground_methods_________n
call fcn.0045b2a0
lea edx, [esp + 0x48]
push edx
push 1
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004ccea0
lea eax, [esp + 0x58]
push eax
push 0
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004ccea0
add esp, 0x4c
lea ecx, [esp + 0x1c]
push ecx
push 1
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004cccc0
lea edx, [esp + 0x2c]
push edx
push 0
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004cccc0
lea eax, [esp + 0x3c]
push eax
push 1
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004ccea0
add esp, 0x30
push eax
push edx
rdtsc
mov dword [esp + 0x20], eax
pop edx
pop eax
lea ecx, [esp + 0x1c]
push ecx
push 1
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004ccea0
add esp, 0x10
push eax
push edx
rdtsc
sub eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
pop edx
pop eax
mov edi, dword [esp + 0x30020]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
mov ebx, 1
push edx
push 0
push pe_nt_image_headers32
push pe_nt_image_headers32
mov dword [edi + 0x7c], fcn.004ccea0
call fcn.004ccea0
add esp, 0x10
push eax
push edx
rdtsc
mov dword [esp + 0x1c], eax
pop edx
pop eax
lea eax, [esp + 0x1c]
push eax
push 0
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004ccea0
add esp, 0x10
push eax
push edx
rdtsc
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
pop edx
pop eax
mov eax, dword [esp + 0x14]
cmp eax, esi
jge 0x4a0ebb
mov esi, eax
xor ebx, ebx
mov dword [edi + 0x7c], fcn.004ccea0
lea ecx, [esp + 0x1c]
push ecx
push 1
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004cccc0
add esp, 0x10
push eax
push edx
rdtsc
mov dword [esp + 0x18], eax
pop edx
pop eax
lea edx, [esp + 0x1c]
push edx
push 1
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004cccc0
add esp, 0x10
push eax
push edx
rdtsc
sub eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
pop edx
pop eax
mov ebp, dword [esp + 0x10]
cmp ebp, esi
jge 0x4a0f1b
mov esi, ebp
mov ebx, 1
mov dword [edi + 0x7c], fcn.004cccc0
lea eax, [esp + 0x1c]
push eax
push 0
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004cccc0
add esp, 0x10
push eax
push edx
rdtsc
mov dword [esp + 0x18], eax
pop edx
pop eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.004cccc0
add esp, 0x10
push eax
push edx
rdtsc
sub eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
pop edx
pop eax
cmp dword [esp + 0x10], esi
jge 0x4a0f74
xor ebx, ebx
mov dword [edi + 0x7c], fcn.004cccc0
mov edx, dword [esp + 0x18]
push edx
push str.glDrawPixels_w__BGR:__i_clocks_n
call fcn.0045b2a0
mov eax, dword [esp + 0x1c]
push eax
push str.glDrawPixels_w__RGB:__i_clocks_n
call fcn.0045b2a0
push ebp
push str.glTexSubImage2D_w__BGR:__i_clocks_n
call fcn.0045b2a0
mov ecx, dword [esp + 0x28]
push ecx
push str.glTexSubImage2D_w__RGB:__i_clocks_n
call fcn.0045b2a0
mov eax, dword [edi + 0x7c]
add esp, 0x20
cmp eax, fcn.004ccea0
mov eax, 0x576774
jne 0x4a0fe0
test ebx, ebx
jne 0x4a0fc7
mov eax, 0x576770
push eax
push str.DrawBackground:_using_glDrawPixels_with__s_data_n
call fcn.0045b2a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3000c
ret
test ebx, ebx
jne 0x4a0fe9
mov eax, 0x576770
push eax
push str.DrawBackground:_using_glTexSubImage2D_with__s_data_n
call fcn.0045b2a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3000c
ret