Function at 0x434d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov edi, dword [0x466644]
mov esi, dword [esp + 0x98]
mov ebx, dword [esp + 0x94]
imul esi, dword [esp + 0xa0]
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], 0
test ebx, ebx
mov dword [esp + 0x64], 4
mov dword [esp + 0x68], 2
mov dword [esp + 0x6c], 6
mov eax, esi
cmovne eax, dword [esp + 0x94]
cmp edi, 5
mov dword [esp + 0x34], esi
mov dword [esp + 0x94], eax
mov eax, 0xffffffff
cmovl eax, edi
mov dword [esp + 0x44], eax
lea eax, [esi + 1]
mov dword [esp + 0x40], eax
imul eax, dword [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 0x4c], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x48], eax
je 0x43516f
mov edi, dword [esp + 0x34]
mov dword [esp], edi
call sub.msvcrt.dll_malloc
mov esi, eax
mov eax, dword [esp + 0x48]
test esi, esi
je 0x435167
mov ecx, dword [esp + 0x9c]
add eax, 1
add edi, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], 0
test ecx, ecx
jg 0x434e83
jmp 0x434f74
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
call fcn.00429e30
mov dword [esp + 0x30], ebx
movzx eax, byte [esp + 0x30]
mov ebx, dword [esp + 0x3c]
mov byte [ebx - 1], al
mov eax, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x40]
add dword [esp + 0x2c], 1
mov eax, dword [esp + 0x2c]
add ebx, edx
cmp dword [esp + 0x9c], eax
mov dword [esp + 0x3c], ebx
je 0x434f74
mov ebx, dword [esp + 0x44]
test ebx, ebx
jns 0x434e00
mov dword [esp + 0x38], 0x7fffffff
mov dword [esp + 0x30], 0
xor ebx, ebx
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
call fcn.00429e30
mov edx, dword [esp + 0x34]
test edx, edx
jle 0x434f70
mov edx, esi
xor ebp, ebp
movsx eax, byte [edx]
add edx, 1
mov ecx, eax
sar ecx, 0x1f
xor eax, ecx
sub eax, ecx
add ebp, eax
cmp edi, edx
jne 0x434ef0
cmp ebp, dword [esp + 0x38]
jge 0x434f13
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ebx
add ebx, 1
cmp ebx, 5
jne 0x434ea1
mov eax, dword [esp + 0x30]
cmp eax, 5
je 0x434e43
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
call fcn.00429e30
jmp 0x434e43
xor ebp, ebp
jmp 0x434f05
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [0x46664c]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x58]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00434400
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
je 0x43516f
mov eax, dword [esp + 0x58]
add eax, 0x39
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x43516f
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0xa4]
mov edx, 0xd
mov dword [esi], 0x474e5089
mov dword [esi + 4], 0xa1a0a0d
mov dword [esi + 8], 0xd000000
mov dword [esi + 0xc], 0x52444849
add eax, 0x39
mov byte [esi + 0x18], 8
mov byte [esi + 0x1c], 0
mov dword [edi], eax
mov eax, dword [esp + 0x98]
sar eax, 0x18
mov byte [esi + 0x10], al
mov eax, dword [esp + 0x98]
sar eax, 0x10
mov byte [esi + 0x11], al
mov eax, dword [esp + 0x98]
mov byte [esi + 0x12], ah
movzx eax, byte [esp + 0x98]
mov byte [esi + 0x13], al
mov eax, dword [esp + 0x9c]
sar eax, 0x18
mov byte [esi + 0x14], al
mov eax, dword [esp + 0x9c]
sar eax, 0x10
mov byte [esi + 0x15], al
mov eax, dword [esp + 0x9c]
mov byte [esi + 0x16], ah
movzx eax, byte [esp + 0x9c]
mov byte [esi + 0x17], al
mov eax, dword [esp + 0xa0]
mov eax, dword [esp + eax*4 + 0x5c]
mov byte [esi + 0x19], al
lea eax, [esi + 0x1d]
mov dword [esp + 0x54], eax
xor eax, eax
mov word [esi + 0x1a], ax
lea eax, [esp + 0x54]
call fcn.00428160
movsx edx, byte [esp + 0x5b]
mov eax, dword [esp + 0x54]
mov byte [eax], dl
movsx edx, word [esp + 0x5a]
mov eax, dword [esp + 0x54]
mov byte [eax + 1], dl
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov byte [eax + 2], dh
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov byte [eax + 3], dl
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov dword [edi + 4], 0x54414449
add edi, 8
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], ebp
mov dword [esp + 0x54], edi
add edi, ebp
call sub.msvcrt.dll_memmove
mov dword [esp], ebx
mov dword [esp + 0x54], edi
call sub.msvcrt.dll_free
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x54]
call fcn.00428160
mov eax, dword [esp + 0x54]
xor edx, edx
mov byte [eax], 0
mov eax, dword [esp + 0x54]
mov byte [eax + 1], 0
mov eax, dword [esp + 0x54]
mov byte [eax + 2], 0
mov eax, dword [esp + 0x54]
mov byte [eax + 3], 0
mov eax, dword [esp + 0x54]
mov dword [eax + 4], 0x444e4549
add eax, 8
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
call fcn.00428160
mov edi, dword [esp + 0xa4]
mov eax, dword [edi]
add eax, esi
cmp dword [esp + 0x54], eax
je 0x43515d
mov dword [esp + 8], 0x488
mov dword [esp + 4], str.D:GitHub_raylib_srcexternal_stb_image_write.h
mov dword [esp], str.o__out__out_len
call fcn.00460340
add esp, 0x7c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call sub.msvcrt.dll_free
add esp, 0x7c
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret