Function at 0x41aa20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5361b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.0040da90
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov dword [esi], 0x53b508
mov dword [esi + 0x88], eax
mov eax, dword [edx]
lea ecx, [esi + 0x10]
xor edi, edi
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x68], edi
mov dword [esp + 0x30], edi
mov dword [ecx + 4], eax
mov edx, dword [edx + 8]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x34], edi
mov dword [ecx + 8], edx
mov dword [esp + 0x38], edi
movsx ecx, word [eax]
movsx edx, word [eax + 2]
movsx eax, word [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.004e5e20
push 0x400
call fcn.004e5da0
and eax, 0xfff
lea edx, [esp + 0x28]
shl eax, 2
mov ebx, eax
push edx
lea ebp, [esi + 0x1c]
movsx eax, word [ebx + 0x610c4a]
lea ecx, [eax + eax*4]
lea eax, [esp + 0x24]
shl ecx, 3
sar ecx, 0xc
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.004e77d0
mov ecx, dword [eax]
mov edx, ebp
push 0x1000
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
movsx eax, word [ebx + 0x610c48]
lea ecx, [eax + eax*4]
shl ecx, 3
sar ecx, 0xc
mov dword [esp + 0x30], ecx
call fcn.004e5da0
mov ecx, dword [esp + 0x30]
and eax, 0xfff
shl eax, 2
movsx edx, word [eax + 0x610c48]
imul edx, ecx
movsx eax, word [eax + 0x610c4a]
sar edx, 0xc
mov dword [esp + 0x94], edx
imul eax, ecx
sar eax, 0xc
lea ecx, [esp + 0x44]
mov dword [esp + 0x90], eax
lea edx, [esp + 0x94]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
call fcn.004e77d0
add esp, 0x2c
lea ecx, [esp + 0x30]
lea edx, [esp + 0x70]
push eax
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call fcn.004e77d0
add esp, 0xc
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.004e7720
add esp, 0xc
mov ecx, ebp
push eax
call fcn.004e7590
push edi
push edi
push 0x80
mov ecx, esi
call fcn.00408cc0
mov ecx, esi
call fcn.00408c80
push 0x14
call fcn.004e5da0
add eax, 0xa
push str.Could_not_find_texture
mov word [esi + 0xe], ax
mov edx, dword [0x56ea9c]
mov eax, dword [edx + 0x94]
cmp eax, edi
mov dword [esi + 0x68], eax
setne al
push eax
call fcn.004015b0
mov ecx, dword [0x56ea9c]
push str.Could_not_find_texture
mov eax, dword [ecx + 0x8c]
cmp eax, edi
mov dword [esi + 0x6c], eax
setne dl
push edx
call fcn.004015b0
mov eax, dword [0x56ea9c]
push str.Could_not_find_texture
mov eax, dword [eax + 0x84]
cmp eax, edi
mov dword [esi + 0x70], eax
setne cl
push ecx
call fcn.004015b0
mov edx, dword [0x56ea9c]
push str.Could_not_find_texture
mov eax, dword [edx + 0x7c]
cmp eax, edi
mov dword [esi + 0x74], eax
setne al
push eax
call fcn.004015b0
mov ecx, dword [0x56ea9c]
push str.Could_not_find_texture
mov eax, dword [ecx + 0x74]
cmp eax, edi
mov dword [esi + 0x78], eax
setne dl
push edx
call fcn.004015b0
mov eax, dword [0x56ea9c]
mov eax, dword [eax + 0x6c]
cmp eax, edi
push str.Could_not_find_texture
setne cl
push ecx
mov dword [esi + 0x7c], eax
call fcn.004015b0
mov edx, dword [0x56ea9c]
push str.Could_not_find_texture
mov eax, dword [edx + 0x64]
cmp eax, edi
mov dword [esi + 0x80], eax
setne al
push eax
call fcn.004015b0
mov ecx, dword [0x56ea9c]
push str.Could_not_find_texture
mov eax, dword [ecx + 0x5c]
cmp eax, edi
mov dword [esi + 0x84], eax
setne dl
push edx
call fcn.004015b0
mov eax, dword [0x56ea9c]
add esp, 0x44
mov ecx, dword [eax + 0x94]
push ecx
mov ecx, esi
call fcn.00408df0
push 0x12c
call fcn.004e5da0
mov ecx, dword [esp + 0x64]
add esp, 4
add eax, 0x50
mov word [esi + 0x56], ax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc