Function at 0x404ee0
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 esi, dword [esp + 0x40]
test ebx, ebx
jne 0x404f00
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x404ef3
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00404ca0
mov eax, dword [ebx + 8]
test al, 8
jne 0x4052a0
cmp byte [ebx + 0x19], 3
je 0x4052c3
test al, 0x10
jne 0x4050f0
test al, 0x20
jne 0x405139
test al, 0x40
jne 0x40515c
test ah, 1
jne 0x405183
test ah, 4
jne 0x4051ae
test ah, 0x40
jne 0x40520c
test al, 0x80
jne 0x405253
test ah, 2
jne 0x40527e
test ah, 0x20
jne 0x4050b5
mov ecx, dword [ebx + 0x30]
xor edi, edi
test ecx, ecx
jg 0x404fa0
jmp 0x404fe8
mov dword [esp + 4], str.Unable_to_write_international_text
mov dword [esp], esi
call fcn.00409810
mov eax, dword [ebx + 0x38]
mov dword [eax + ebp], 0xfffffffd
inc edi
cmp dword [ebx + 0x30], edi
jle 0x404fe8
mov ebp, edi
mov eax, dword [ebx + 0x38]
shl ebp, 4
add eax, ebp
mov edx, dword [eax]
cmp edx, 0
jg 0x404f80
je 0x405080
inc edx
jne 0x404f9a
mov dword [esp + 0xc], 0
inc edi
mov edx, dword [eax + 8]
mov dword [esp + 8], edx
mov eax, dword [eax + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00416850
mov eax, dword [ebx + 0x38]
mov dword [eax + ebp], 0xfffffffd
cmp dword [ebx + 0x30], edi
jg 0x404fa0
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x404ef3
mov edi, dword [ebx + 0xbc]
lea eax, [eax + eax*4]
lea eax, [edi + eax*4]
cmp edi, eax
jb 0x40502e
jmp 0x404ef3
mov eax, dword [ebx + 0xc0]
mov ebp, dword [ebx + 0xbc]
add edi, 0x14
lea eax, [eax + eax*4]
lea eax, [ebp + eax*4]
cmp edi, eax
jae 0x404ef3
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00402b90
cmp eax, 1
je 0x405010
mov dl, byte [edi + 0x10]
test dl, dl
je 0x405010
and edx, 6
cmp edx, 2
jne 0x405010
test byte [edi + 3], 0x20
jne 0x40505f
cmp eax, 3
je 0x40505f
test byte [esi + 0x6e], 1
je 0x405010
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00414f50
jmp 0x405010
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov edx, dword [eax + 8]
mov dword [esp + 8], edx
mov eax, dword [eax + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00416950
mov eax, dword [ebx + 0x38]
mov dword [eax + ebp], 0xfffffffe
jmp 0x404f9a
mov ebp, dword [ebx + 0xd8]
xor edi, edi
test ebp, ebp
jle 0x404f72
mov eax, edi
mov edx, dword [ebx + 0xd4]
shl eax, 4
inc edi
add eax, edx
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004164e0
cmp dword [ebx + 0xd8], edi
jg 0x4050c5
jmp 0x404f72
test byte [esi + 0x72], 8
mov al, byte [ebx + 0x19]
je 0x405101
cmp al, 3
je 0x4052db
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], esi
mov dword [esp + 4], eax
call fcn.00415ef0
mov eax, dword [ebx + 8]
test al, 0x20
je 0x404f35
xor eax, eax
mov al, byte [ebx + 0x19]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [ebx + 0x5a]
mov dword [esp + 4], eax
call fcn.00416070
mov eax, dword [ebx + 8]
test al, 0x40
je 0x404f3d
mov eax, dword [ebx + 0x14]
and eax, 0xffff
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004161d0
mov eax, dword [ebx + 8]
test ah, 1
je 0x404f46
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], esi
mov dword [esp + 4], eax
call fcn.00416ad0
mov eax, dword [ebx + 8]
test ah, 4
je 0x404f4f
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], esi
mov dword [esp + 4], eax
call fcn.00416b70
mov eax, dword [ebx + 8]
test ah, 0x40
je 0x404f58
mov eax, dword [ebx + 0xe8]
mov edx, dword [ebx + 0xec]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xe0]
mov edx, dword [ebx + 0xe4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
xor eax, eax
mov al, byte [ebx + 0xdc]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00416d90
mov eax, dword [ebx + 8]
test al, 0x80
je 0x404f60
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], esi
mov dword [esp + 4], eax
call fcn.00416e30
mov eax, dword [ebx + 8]
test ah, 2
je 0x404f69
lea eax, [ebx + 0x3c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00416ed0
or dword [esi + 0x68], 0x200
mov eax, dword [ebx + 8]
jmp 0x404f69
mov eax, dword [ebx + 0x14]
and eax, 0xffff
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00415450
mov eax, dword [ebx + 8]
jmp 0x404f25
mov dword [esp + 4], str.Valid_palette_required_for_paletted_images
mov dword [esp], esi
call fcn.00409770
mov eax, dword [ebx + 8]
jmp 0x404f25
xor edx, edx
cmp word [ebx + 0x16], 0
je 0x40510b
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 0x4052f0
mov al, byte [ebx + 0x19]
jmp 0x40510b