Function at 0x4c6490
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
test ebx, ebx
jne 0x4c64b0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x4c64a3
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.004c6250
mov eax, dword [ebx + 8]
test al, 8
jne 0x4c6838
cmp byte [ebx + 0x19], 3
je 0x4c685b
test al, 0x10
jne 0x4c66a0
test al, 0x20
jne 0x4c66e9
test al, 0x40
jne 0x4c670c
test ah, 1
jne 0x4c6733
test ah, 4
jne 0x4c675e
test ah, 0x40
jne 0x4c67bc
test al, 0x80
jne 0x4c67ef
test ah, 2
jne 0x4c681a
test ah, 0x20
jne 0x4c6665
mov esi, dword [ebx + 0x30]
test esi, esi
jle 0x4c6596
xor esi, esi
mov eax, dword [ebx + 0x38]
jmp 0x4c6550
mov dword [esp + 4], str.Unable_to_write_international_text
mov dword [esp], edi
call fcn.004cad50
mov eax, dword [ebx + 0x38]
mov dword [eax + ebp], 0xfffffffd
inc esi
cmp dword [ebx + 0x30], esi
jle 0x4c6596
mov ebp, esi
shl ebp, 4
lea edx, [eax + ebp]
mov ecx, dword [edx]
cmp ecx, 0
jg 0x4c6530
je 0x4c6630
inc ecx
jne 0x4c654a
mov dword [esp + 0xc], 0
inc esi
mov eax, dword [edx + 8]
mov dword [esp + 8], eax
mov eax, dword [edx + 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004d7d20
mov eax, dword [ebx + 0x38]
mov dword [eax + ebp], 0xfffffffd
cmp dword [ebx + 0x30], esi
jg 0x4c6550
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x4c64a3
mov esi, dword [ebx + 0xbc]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
cmp esi, eax
jb 0x4c65dd
jmp 0x4c64a3
mov eax, dword [ebx + 0xc0]
add esi, 0x14
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0xbc]
lea eax, [eax + edx*4]
cmp esi, eax
jae 0x4c64a3
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004c3ff0
cmp eax, 1
je 0x4c65c0
mov dl, byte [esi + 0x10]
test dl, dl
je 0x4c65c0
and edx, 6
cmp dl, 2
jne 0x4c65c0
test byte [esi + 3], 0x20
jne 0x4c660e
cmp eax, 3
je 0x4c660e
test byte [edi + 0x6e], 1
je 0x4c65c0
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.004d6480
jmp 0x4c65c0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [edx + 8]
mov dword [esp + 8], eax
mov eax, dword [edx + 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004d7e20
mov eax, dword [ebx + 0x38]
mov dword [eax + ebp], 0xfffffffe
jmp 0x4c654a
mov ecx, dword [ebx + 0xd8]
xor esi, esi
test ecx, ecx
jle 0x4c6522
mov eax, esi
mov edx, dword [ebx + 0xd4]
shl eax, 4
mov dword [esp], edi
add eax, edx
inc esi
mov dword [esp + 4], eax
call fcn.004d79e0
cmp dword [ebx + 0xd8], esi
jg 0x4c6675
jmp 0x4c6522
test byte [edi + 0x72], 8
mov al, byte [ebx + 0x19]
je 0x4c66b1
cmp al, 3
je 0x4c6873
mov dx, word [ebx + 0x16]
and edx, 0xffff
and eax, 0xff
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x50]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004d73f0
mov eax, dword [ebx + 8]
test al, 0x20
je 0x4c64e5
xor eax, eax
mov al, byte [ebx + 0x19]
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [ebx + 0x5a]
mov dword [esp + 4], eax
call fcn.004d7560
mov eax, dword [ebx + 8]
test al, 0x40
je 0x4c64ed
mov eax, dword [ebx + 0x14]
and eax, 0xffff
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004d76b0
mov eax, dword [ebx + 8]
test ah, 1
je 0x4c64f6
xor eax, eax
mov al, byte [ebx + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x64]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004d7fb0
mov eax, dword [ebx + 8]
test ah, 4
je 0x4c64ff
mov eax, dword [ebx + 0xb0]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xac]
mov dword [esp + 0x18], eax
xor eax, eax
mov al, byte [ebx + 0xb5]
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [ebx + 0xb4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xa8]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xa4]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004d8050
mov eax, dword [ebx + 8]
test ah, 0x40
je 0x4c6508
fld qword [ebx + 0xe8]
xor eax, eax
fstp qword [esp + 0x10]
fld qword [ebx + 0xe0]
fstp qword [esp + 8]
mov al, byte [ebx + 0xdc]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004d8260
mov eax, dword [ebx + 8]
test al, 0x80
je 0x4c6510
xor eax, eax
mov al, byte [ebx + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x74]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x70]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004d82f0
mov eax, dword [ebx + 8]
test ah, 2
je 0x4c6519
lea eax, [ebx + 0x3c]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004d8390
mov eax, dword [ebx + 8]
or dword [edi + 0x68], 0x200
jmp 0x4c6519
mov eax, dword [ebx + 0x14]
and eax, 0xffff
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004d6980
mov eax, dword [ebx + 8]
jmp 0x4c64d5
mov dword [esp + 4], str.Valid_palette_required_for_paletted_images
mov dword [esp], edi
call fcn.004cacb0
mov eax, dword [ebx + 8]
jmp 0x4c64d5
cmp word [ebx + 0x16], 0
je 0x4c689f
xor eax, eax
lea esi, [esi]
mov edx, dword [ebx + 0x4c]
add edx, eax
inc eax
xor byte [edx], 0xff
mov dx, word [ebx + 0x16]
and edx, 0xffff
cmp edx, eax
jg 0x4c6880
mov al, byte [ebx + 0x19]
jmp 0x4c66bb
xor edx, edx
jmp 0x4c66bb