Function at 0x502a40
Capabilities:
Terminate process

Disassembly:
push ecx
mov al, byte [0x6bbaa4]
push ebx
push ebp
push esi
test al, al
push edi
je 0x502d46
mov eax, dword [0x6b78f8]
mov byte [0x6bbaa4], 0
test eax, eax
je 0x502ac3
mov edi, 0x6b7aa0
mov esi, dword [edi]
test esi, esi
je 0x502ab3
mov eax, dword [esi + 8]
test al, 2
je 0x502a8d
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
push ecx
push eax
push 0
lea eax, [esi + 0x10]
push edx
push eax
call fcn.00514b10
add esp, 0x14
jmp 0x502aa0
mov ecx, dword [esi + 0xc]
push eax
push 0
lea edx, [esi + 0x10]
push ecx
push edx
call fcn.00514c60
add esp, 0x10
call fcn.00514da0
test al, al
jne 0x502cb5
mov esi, dword [esi]
test esi, esi
jne 0x502a6d
add edi, 4
cmp edi, 0x6bbaa0
jle 0x502a67
jmp 0x502cb5
mov dword [esp + 0x10], 0x1000
mov ebp, 0x6bbaa0
mov al, byte [0x6bbaa5]
mov edi, dword [ebp]
test al, al
je 0x502afa
mov eax, dword [0x6bbaa8]
test eax, eax
jle 0x502afa
cmp dword [esp + 0x10], eax
jne 0x502afa
mov eax, dword [0x6b791c]
push 0
push 7
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test edi, edi
je 0x502c7c
mov ebx, dword [edi + 4]
mov eax, dword [0x6b7a74]
cmp ebx, eax
je 0x502b46
mov eax, dword [0x6b791c]
push ebx
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x8c]
mov esi, eax
test esi, esi
je 0x502b40
push 0x3ee
push str.C:_backupSpideyPCSpideyPCD3dDXPoly.cpp
push esi
call fcn.004fc820
add esp, 0xc
test esi, esi
jl 0x502cfb
mov dword [0x6b7a74], ebx
xor eax, eax
mov ax, word [edi + 8]
push eax
call fcn.00502d60
mov ax, word [edi + 0xa]
add esp, 4
not ax
and eax, 0xffff
mov esi, eax
and eax, 4
or al, 2
and esi, 2
shr eax, 1
mov ebx, eax
mov eax, dword [0x6b7a78]
or esi, 1
cmp esi, eax
je 0x502b94
mov eax, dword [0x6b791c]
push esi
push 0xd
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov dword [0x6b7a78], esi
cmp ebx, dword [0x6b7a7c]
je 0x502bb5
mov eax, dword [0x6b791c]
push ebx
push 0xe
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov dword [0x6b7a7c], ebx
mov al, byte [edi + 0xa]
mov cl, byte [0x6b7a88]
shr al, 3
and al, 1
cmp al, cl
je 0x502bea
mov ecx, dword [0x6b791c]
xor ebx, ebx
test al, al
setne bl
add ebx, 3
mov byte [0x6b7a88], al
mov edx, dword [ecx]
push ebx
push 4
push 0
push ecx
call dword [edx + 0x94]
mov al, byte [edi + 0xa]
not al
shr eax, 4
and eax, 1
mov esi, eax
mov eax, dword [0x6b7a9c]
cmp esi, eax
je 0x502c56
mov edx, dword [esi*4 + 0x563c84]
mov eax, dword [0x6b791c]
push edx
push 0x10
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x94]
mov edx, dword [esi*4 + 0x563c8c]
mov eax, dword [0x6b791c]
push edx
push 0x11
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x94]
test esi, esi
mov dword [0x6b7a9c], esi
mov eax, str.PointSample
je 0x502c48
mov eax, str.Bilinear
push eax
push str.Filter__s._r_n
call fcn.00502d50
add esp, 8
mov edx, dword [edi + 0xc]
mov eax, dword [0x6b791c]
push 0
push edx
mov ecx, dword [eax]
lea edx, [edi + 0x10]
push edx
push 0x144
push 6
push eax
call dword [ecx + 0x64]
mov edi, dword [edi]
test edi, edi
jne 0x502b02
mov edx, dword [esp + 0x10]
sub ebp, 4
dec edx
cmp ebp, 0x6b7aa0
mov dword [esp + 0x10], edx
jge 0x502ad0
mov al, byte [0x6bbaa5]
test al, al
je 0x502cb5
mov eax, dword [0x6bbaa8]
test eax, eax
jle 0x502cb5
mov eax, dword [0x6b791c]
push 1
push 7
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [0x6b78f8]
test eax, eax
je 0x502d06
call fcn.00514ed0
mov eax, dword [0x6b7908]
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x80]
mov esi, eax
test esi, esi
je 0x502d39
push 0x351
push str.C:_backupSpideyPCSpideyPCD3dDXPoly.cpp
push esi
call fcn.004fc820
add esp, 0xc
test esi, esi
jge 0x502d39
call fcn.005001b0
push esi
call fcn.0052a101
call fcn.005001b0
push esi
call fcn.0052a101
mov eax, dword [0x6b791c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
je 0x502d39
push 0x357
push str.C:_backupSpideyPCSpideyPCD3dDXPoly.cpp
push esi
call fcn.004fc820
add esp, 0xc
test esi, esi
jge 0x502d39
call fcn.005001b0
push esi
call fcn.0052a101
mov al, byte [esp + 0x18]
test al, al
je 0x502d46
call fcn.00502990
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret