Function at 0x47c270
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ca06
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov dword [ebp - 0x18], ecx
push ebx
push esi
lea ecx, [ebp - 0x60]
push edi
call fcn.0042e010
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
cmp dword [ecx + 0x1658], 0
jne 0x47c2d0
mov dword [ebp - 4], 0xffffffff
call fcn.0047ca10
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax*4 + 0x6c0]
mov dword [ebp - 0x10], edx
mov eax, dword [edx]
test eax, eax
je 0x47c2af
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 5
jne 0x47c3ea
mov dl, byte [eax + 0x28]
cmp byte [ecx + 0x15e4], dl
jne 0x47c3a2
mov esi, dword [eax + 4]
test esi, esi
je 0x47c318
mov ecx, esi
call fcn.00472de0
push esi
call fcn.0049bc20
add esp, 4
push 0x34
call fcn.0049bc10
mov dword [ebp - 0x14], eax
add esp, 4
mov byte [ebp - 4], 1
mov esi, eax
mov eax, 0
test esi, esi
je 0x47c33b
mov ecx, esi
call fcn.00472d70
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov ecx, dword [edx]
mov dword [ecx + 4], eax
mov edx, dword [edx]
mov ebx, dword [ebp - 0x18]
movsx eax, word [edx + 0x24]
movsx ecx, word [edx + 0x22]
push eax
push ecx
mov eax, dword [ebx + 0x133c]
mov ecx, dword [edx + 4]
push eax
call fcn.00472a90
mov edx, dword [ebp - 0x10]
test eax, eax
mov eax, dword [edx]
je 0x47c3b8
movsx ecx, word [eax + 0x24]
movsx eax, word [eax + 0x22]
dec ecx
dec eax
push ecx
push eax
push 0
lea ecx, [ebp - 0x24]
push 0
push ecx
call dword [0xd724c0]
mov edx, dword [ebp - 0x10]
push 0
push 0
mov eax, dword [edx]
add eax, 8
lea edx, [ebp - 0x24]
push eax
push edx
mov ecx, dword [eax - 4]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.0047ca10
mov eax, 1
jmp 0x47c2bd
mov esi, dword [eax + 4]
test esi, esi
je 0x47c3cf
mov ecx, esi
call fcn.00472de0
push esi
call fcn.0049bc20
add esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [eax + 4], 0
jmp 0x47c3a2
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [edx]
cmp byte [eax + 0x2a], 0
jne 0x47c412
push str.Direct3D::ReloadTexture
push 0x4c9ebc
call fcn.0043d370
add esp, 8
jmp 0x47c2af
mov esi, dword [eax + 4]
test esi, esi
je 0x47c435
mov ecx, esi
call fcn.0042e080
push esi
call fcn.0049bc20
add esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [eax + 4], 0
lea edi, [ebp - 0xec]
xor eax, eax
mov ecx, 0x1b
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
lea edx, [ebp - 0xec]
mov eax, dword [ecx + 0xa4]
add ecx, 8
and eax, 8
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0047aee0
test eax, eax
jne 0x47c479
push str.theres_no_format_matching._Direct3D::ReloadTexture
call fcn.0043d360
jmp 0x47c97c
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xe8], 0x1007
mov eax, dword [edx]
movsx ecx, word [eax + 0x24]
mov dword [ebp - 0xe4], ecx
movsx edx, word [eax + 0x22]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebx + 0x1afc]
mov ecx, eax
lea edx, [eax + eax*8]
mov dword [ebp - 0x84], 0x4001000
lea eax, [ecx + edx*8]
lea eax, [eax + eax*4]
sub eax, ecx
cmp dword [eax + 0x6a65e4], 0
jne 0x47c4cf
mov dword [ebp - 0x84], 0x4001800
push 0x3c
call fcn.0049bc10
mov dword [ebp - 0x14], eax
add esp, 4
mov byte [ebp - 4], 2
mov esi, eax
mov eax, 0
test esi, esi
je 0x47c4f2
mov ecx, esi
call fcn.0042e010
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov ecx, dword [edx]
mov ebx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0xec]
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ecx, dword [edx + 0x133c]
push ecx
mov ecx, dword [eax + 4]
call fcn.0042df00
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
cmp byte [edx + 0x22], 0
jne 0x47c541
push str.Direct3D::ReloadTexture
push str.failed_to_generate_the_surface
call fcn.0043d370
add esp, 8
jmp 0x47c97f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x1afc]
mov ecx, eax
lea ebx, [eax + eax*8]
lea eax, [ecx + ebx*8]
lea eax, [eax + eax*4]
sub eax, ecx
cmp dword [eax + 0x6a65e4], 0
je 0x47c5c2
cmp dword [edx + 0x30], 0
jne 0x47c5c2
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov esi, dword [ecx]
call dword [esi + 0x18]
mov ecx, dword [ebp - 0x18]
call fcn.0047c1b0
test eax, eax
je 0x47c728
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov esi, dword [ecx]
call dword [esi + 0x18]
lea ecx, [ebp - 0xec]
mov edx, dword [ebp - 0x18]
push ecx
mov eax, dword [edx + 0x133c]
push eax
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx]
mov ecx, dword [esi + 4]
call fcn.0042df00
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov eax, dword [eax + 4]
cmp byte [eax + 0x22], bl
je 0x47c568
cmp dword [eax + 0x30], ebx
je 0x47c568
lea esi, [ebp - 0xec]
mov edx, dword [ebp - 0x10]
mov ecx, 0x1b
mov edi, dword [edx]
add edi, 0x30
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
call fcn.0042df20
mov dword [ebp - 0x84], 0x1800
lea ecx, [ebp - 0xec]
mov edx, dword [ebp - 0x18]
push ecx
mov eax, dword [edx + 0x133c]
push eax
lea ecx, [ebp - 0x60]
call fcn.0042df00
mov edx, dword [ebp - 0x10]
mov esi, dword [edx]
movsx eax, word [esi + 0x24]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fsub dword [0x4a8290]
call fcn.0049bb48
push eax
movsx eax, word [esi + 0x22]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fsub dword [0x4a8290]
call fcn.0049bb48
push eax
mov esi, dword [0xd724c0]
push 0
lea eax, [ebp - 0x70]
push 0
push eax
call esi
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
movsx ecx, word [eax + 0x24]
movsx eax, word [eax + 0x22]
dec ecx
dec eax
push ecx
push eax
push 0
lea ecx, [ebp - 0x80]
push 0
push ecx
call esi
mov ecx, dword [ebp - 0x18]
test byte [ecx + 0x210], 8
jne 0x47c70b
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
cmp byte [ecx + 0x2c], 0
je 0x47c70b
mov eax, dword [ecx + 8]
add ecx, 8
push 0
mov edi, 1
push 0
mov esi, edi
call dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov cl, byte [eax + 0x28]
shl esi, cl
cmp esi, edi
jbe 0x47c6fd
mov esi, 0xf00000
mov ebx, 0xf000
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push eax
push edi
mov ecx, dword [edx]
add ecx, 8
call fcn.0041f6d0
test dword [ebp - 0x14], esi
jne 0x47c6e9
test dword [ebp - 0x14], ebx
jne 0x47c6e9
test byte [ebp - 0x14], 0xf0
jne 0x47c6e9
push 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x10
push 0x10
mov ecx, dword [edx]
push edi
add ecx, 8
call fcn.0041ee50
mov edx, dword [ebp - 0x10]
inc edi
mov eax, 1
mov ecx, dword [edx]
mov cl, byte [ecx + 0x28]
shl eax, cl
cmp eax, edi
ja 0x47c6ae
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
mov eax, dword [ecx + 8]
add ecx, 8
call dword [eax + 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
mov eax, dword [ecx + 0xa4]
test al, 1
je 0x47c737
push 0
add ecx, 8
push 0
push ecx
push 0
push 0
jmp 0x47c755
push str.failed_to_generate_newest_texture_regardless_to_doing_the_compression_of_texture._Direct3D::ReloadTexture
call fcn.0043d360
jmp 0x47c97c
push 0
test al, 0x20
push 0
je 0x47c749
add ecx, 8
push ecx
push 0
push 0
jmp 0x47c755
add ecx, 8
lea eax, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x70]
push eax
push edx
lea ecx, [ebp - 0x60]
call fcn.00471f40
cmp byte [ebp - 0x3c], 0
je 0x47c77a
push 0
mov edx, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x60]
push 0
mov eax, dword [edx]
add eax, 8
push eax
call fcn.0041d1a0
movsx eax, word [ebp - 0x46]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
call fcn.0049bb48
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
mov dword [ecx + 0x9c], eax
movsx eax, word [ebp - 0x44]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
call fcn.0049bb48
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
mov dword [ecx + 0xa0], eax
mov eax, dword [ebp - 0x18]
test byte [eax + 0x210], 8
jne 0x47c840
mov eax, dword [edx]
test byte [eax + 0xa4], 8
jne 0x47c840
push 0
lea ecx, [ebp - 0x60]
push 0
xor edi, edi
call fcn.00472770
cmp word [ebp - 0x44], di
jle 0x47c838
xor esi, esi
cmp word [ebp - 0x46], si
jle 0x47c82f
mov ebx, 0xff000000
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x60]
push eax
push edi
push esi
call fcn.0041f550
movsx eax, word [ebp - 0x46]
sub eax, esi
cmp eax, 1
jne 0x47c813
movsx eax, word [ebp - 0x44]
sub eax, edi
cmp eax, 1
jne 0x47c813
mov dword [ebp - 0x14], ebx
jmp 0x47c816
or dword [ebp - 0x14], ebx
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push edi
push esi
inc esi
call fcn.0041f190
movsx eax, word [ebp - 0x46]
cmp eax, esi
jg 0x47c7ea
movsx eax, word [ebp - 0x44]
inc edi
cmp eax, edi
jg 0x47c7dd
lea ecx, [ebp - 0x60]
call fcn.00472980
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
test byte [eax + 0xa4], 8
je 0x47c8be
xor ebx, ebx
cmp byte [ebp - 0x3c], bl
jne 0x47c8be
push ebx
lea ecx, [ebp - 0x60]
push ebx
xor esi, esi
call fcn.00472770
cmp word [ebp - 0x44], bx
jle 0x47c8b6
xor edi, edi
cmp word [ebp - 0x46], bx
jle 0x47c8ad
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x60]
push eax
push esi
push edi
call fcn.0041f550
test byte [ebp - 0x12], 0xff
jne 0x47c8a4
cmp byte [ebp - 0x13], bl
jne 0x47c8a4
cmp byte [ebp - 0x14], bl
jne 0x47c8a4
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x14], 0x80808
push 0x80808
push esi
push edi
call fcn.0041f190
movsx eax, word [ebp - 0x46]
inc edi
cmp eax, edi
jg 0x47c86f
movsx eax, word [ebp - 0x44]
inc esi
cmp eax, esi
jg 0x47c867
lea ecx, [ebp - 0x60]
call fcn.00472980
xor ebx, ebx
cmp byte [ebp - 0x48], bl
je 0x47c939
cmp byte [ebp - 0x3c], bl
jne 0x47c939
push ebx
lea ecx, [ebp - 0x60]
push ebx
xor esi, esi
call fcn.00472770
cmp word [ebp - 0x44], bx
jle 0x47c931
xor edi, edi
cmp word [ebp - 0x46], bx
jle 0x47c928
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x60]
push eax
push esi
push edi
call fcn.0041f550
mov eax, dword [ebp - 0x14]
mov edx, 0xff000000
and eax, 0xff000000
push ebx
mov ecx, eax
sub edx, eax
neg ecx
xor ecx, dword [ebp - 0x14]
and ecx, 0xffffff
xor ecx, edx
push ecx
mov dword [ebp - 0x14], ecx
push esi
lea ecx, [ebp - 0x60]
push edi
call fcn.0041f190
movsx ecx, word [ebp - 0x46]
inc edi
cmp ecx, edi
jg 0x47c8e4
movsx eax, word [ebp - 0x44]
inc esi
cmp eax, esi
jg 0x47c8dc
lea ecx, [ebp - 0x60]
call fcn.00472980
lea ecx, [ebp - 0x60]
call fcn.0042df20
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x38]
push eax
mov ebx, dword [eax]
call dword [ebx + 0x18]
mov dword [0x6a6ba4], eax
test eax, eax
je 0x47c9c1
push str.Direct3D::ReloadTexture
push str.failed_to_load_texture.
call fcn.0043d370
add esp, 8
mov eax, dword [0x6a6ba4]
push eax
call fcn.00464180
add esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov esi, dword [eax + 4]
test esi, esi
je 0x47c99b
mov ecx, esi
call fcn.0042e080
push esi
call fcn.0049bc20
add esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [eax + 4], 0
mov eax, dword [edx]
mov dword [eax], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1658], 0
jmp 0x47c2af
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x148c]
mov ebx, dword [edx]
push eax
mov ecx, dword [ebx + 4]
call fcn.0042dfa0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [edx]
mov dword [ebx], 1
call fcn.0047ca10
mov eax, 1
jmp 0x47c2bd