Function at 0x490920
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0x2c
lea ecx, [ebp - 0x30]
push esi
push ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], esi
xor ebx, ebx
call fcn.00493d40
mov edx, dword [0x519e30]
push 0x1cfce
add edx, 0x1e63f
push esi
push edx
call fcn.00493d40
mov eax, dword [0x519e30]
push 0xbcc
mov dword [eax + 0x1c], esi
call fcn.004878d0
mov ecx, dword [0x519e30]
add esp, 0x1c
mov dword [ebp - 0x34], esi
movzx eax, word [ecx + 0x28]
movzx edi, word [ecx + 0x2a]
imul edi, eax
xor edx, edx
mov eax, esi
div edi
test edx, edx
jne 0x490bc6
xor edi, edi
cmp esi, edi
je 0x490bc6
movzx eax, word [ecx + 0x28]
mov dword [ebp - 0x48], edi
cmp eax, edi
jbe 0x490af7
xor esi, esi
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], eax
movzx edx, word [ecx + 0x2c]
push edx
lea eax, [esi + ecx + 0x22e]
push 0
push eax
call fcn.00493d40
mov eax, dword [0x519e30]
movzx ecx, word [eax + 0x2c]
mov edx, dword [ebp - 0x4c]
push ecx
lea ecx, [edx + eax + 0x1e641]
push ecx
lea edx, [esi + eax + 0x22e]
push edx
call fcn.00494f10
mov eax, dword [0x519e30]
mov ebx, 1
mov ecx, ebx
add esp, 0x18
mov dword [ebp - 0x34], ebx
cmp cx, word [eax + 0x2a]
jae 0x490a59
movzx edx, word [eax + 0x2c]
xor ecx, ecx
test edx, edx
je 0x490a4d
add ebx, dword [ebp - 0x40]
imul ebx, ebx, 0x202
lea edx, [esi + eax]
add eax, ebx
mov al, byte [eax + ecx + 0x1e641]
xor byte [edx + ecx + 0x22e], al
mov eax, dword [0x519e30]
lea edx, [edx + ecx + 0x22e]
movzx edx, word [eax + 0x2c]
inc ecx
cmp ecx, edx
jb 0x490a22
mov ebx, dword [ebp - 0x34]
movzx ecx, word [eax + 0x2a]
inc ebx
mov dword [ebp - 0x34], ebx
cmp ebx, ecx
jb 0x490a13
movzx edx, word [eax + 0x2c]
mov eax, dword [eax + 0x1e637]
push edx
lea ecx, [eax + edi + 2]
push 0
push ecx
call fcn.00493d40
mov eax, dword [0x519e30]
movzx edx, word [eax + 0x2c]
push edx
mov edx, dword [eax + 0x1e637]
lea ecx, [esi + eax + 0x22e]
push ecx
lea eax, [edx + edi + 2]
push eax
call fcn.00494f10
mov eax, dword [0x519e30]
movzx edx, word [eax + 0x2c]
mov eax, dword [eax + 0x1e637]
lea ecx, [ebp - 0x38]
push ecx
push edx
lea ecx, [eax + edi + 2]
push ecx
call fcn.0048e520
mov edx, dword [0x519e30]
mov eax, dword [edx + 0x1e637]
mov cx, word [ebp - 0x38]
add dword [ebp - 0x4c], 0x2a2a
add dword [ebp - 0x40], 0x15
mov word [edi + eax], cx
mov ecx, dword [0x519e30]
mov eax, dword [ebp - 0x48]
movzx edx, word [ecx + 0x28]
inc eax
add esp, 0x24
add esi, 0x200
add edi, 0x202
mov dword [ebp - 0x48], eax
cmp eax, edx
jb 0x4909c1
xor eax, eax
xor edi, edi
xor ebx, ebx
cmp ax, word [ecx + 0x2a]
jae 0x490b5d
movzx eax, word [ecx + 0x28]
xor esi, esi
mov dword [ebp - 0x40], esi
lea esp, [esp]
xor edx, edx
test eax, eax
je 0x490b48
jmp 0x490b20
mov eax, dword [ecx + 0x1e63b]
mov cx, word [esi + ecx + 0x1e63f]
mov word [eax + edi*2], cx
mov ecx, dword [0x519e30]
movzx eax, word [ecx + 0x28]
inc edx
inc edi
add esi, 0x2a2a
cmp edx, eax
jb 0x490b20
mov esi, dword [ebp - 0x40]
movzx edx, word [ecx + 0x2a]
inc ebx
add esi, 0x202
mov dword [ebp - 0x40], esi
cmp ebx, edx
jb 0x490b10
mov ax, word [ecx + 0x2a]
imul ax, word [ecx + 0x28]
mov edx, dword [ebp - 0x44]
mov word [ecx + 0x1e631], ax
mov ecx, dword [0x519e30]
mov dword [ecx + 0x1e633], edx
mov eax, dword [0x519e30]
inc dword [eax + 0x1c]
call fcn.0048fda0
test eax, eax
jne 0x490ebb
xor ebx, ebx
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
call fcn.00493d40
mov ecx, dword [0x519e30]
push 0x1cfce
add ecx, 0x1e63f
push ebx
push ecx
call fcn.00493d40
mov ecx, dword [0x519e30]
add esp, 0x18
movzx edx, word [ecx + 0x2c]
push edx
add ecx, 0x2e
push 0
push ecx
call fcn.00493d40
mov ecx, dword [0x519e30]
movzx edx, word [ecx + 0x2c]
mov eax, dword [ecx + 8]
mov esi, dword [ebp - 0x3c]
sub eax, dword [ecx + 4]
lea edi, [edx + esi]
add esp, 0xc
cmp edi, eax
jb 0x490bf7
sub eax, esi
jmp 0x490bf9
mov eax, edx
mov edx, dword [ebp - 0x50]
push edx
push eax
add ecx, 0x2e
push 1
push ecx
call fcn.0049a5ee
mov edi, eax
add dword [ebp - 0x44], edi
lea eax, [ebp - 0x38]
push eax
mov eax, dword [0x519e30]
movzx ecx, word [eax + 0x2c]
push ecx
add eax, 0x2e
add esi, edi
push eax
mov dword [ebp - 0x3c], esi
call fcn.0048e520
mov eax, dword [0x519e30]
movzx edx, word [eax + 0x2c]
mov esi, ebx
imul esi, esi, 0x15
add esi, dword [ebp + ebx*4 - 0x30]
push edx
imul esi, esi, 0x202
lea ecx, [eax + 0x2e]
push ecx
lea edx, [esi + eax + 0x1e641]
push edx
call fcn.00494f10
mov eax, dword [0x519e30]
mov cx, word [ebp - 0x38]
mov word [esi + eax + 0x1e63f], cx
mov eax, dword [ebp + ebx*4 - 0x30]
mov ecx, dword [0x519e30]
movzx esi, word [ecx + 0x28]
inc eax
mov dword [ebp + ebx*4 - 0x30], eax
xor edx, edx
lea eax, [ebx + 1]
div esi
add esp, 0x28
mov ebx, edx
movzx edx, word [ecx + 0x2c]
cmp edi, edx
je 0x490ca4
movzx edi, word [ecx + 0x2a]
imul edi, esi
mov esi, dword [ebp - 0x34]
xor edx, edx
mov eax, esi
div edi
test edx, edx
jne 0x490cba
test esi, esi
je 0x490cba
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
cmp dword [ebp - 0x3c], eax
jae 0x490cba
inc dword [ebp - 0x34]
mov esi, dword [ebp - 0x34]
jmp 0x490985
xor ebx, ebx
xor edx, edx
xor esi, esi
mov dword [ebp - 0x48], ebx
cmp dx, word [ecx + 0x28]
jae 0x490e23
xor edi, edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
jmp 0x490ce0
movzx eax, word [ecx + 0x2c]
push eax
lea ecx, [esi + ecx + 0x22e]
push 0
push ecx
call fcn.00493d40
mov eax, dword [0x519e30]
movzx edx, word [eax + 0x2c]
mov ecx, dword [ebp - 0x3c]
push edx
lea edx, [ecx + eax + 0x1e641]
push edx
lea eax, [esi + eax + 0x22e]
push eax
call fcn.00494f10
mov ecx, dword [0x519e30]
lea eax, [ebp + ebx*4 - 0x30]
add esp, 0x18
cmp dword [eax], 1
mov dword [ebp - 0x34], 1
jbe 0x490d88
mov eax, dword [eax]
movzx edx, word [ecx + 0x2c]
mov dword [ebp - 0x50], eax
xor eax, eax
test edx, edx
je 0x490d79
mov ebx, dword [ebp - 0x34]
add ebx, dword [ebp - 0x40]
imul ebx, ebx, 0x202
lea ebx, [ebx]
lea edx, [esi + ecx]
add ecx, ebx
mov cl, byte [ecx + eax + 0x1e641]
xor byte [edx + eax + 0x22e], cl
mov ecx, dword [0x519e30]
lea edx, [edx + eax + 0x22e]
movzx edx, word [ecx + 0x2c]
inc eax
cmp eax, edx
jb 0x490d50
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x50]
jb 0x490d38
mov ebx, dword [ebp - 0x48]
movzx edx, word [ecx + 0x2c]
mov eax, dword [ecx + 0x1e637]
push edx
lea ecx, [eax + edi + 2]
push 0
push ecx
call fcn.00493d40
mov eax, dword [0x519e30]
movzx edx, word [eax + 0x2c]
push edx
mov edx, dword [eax + 0x1e637]
lea ecx, [esi + eax + 0x22e]
push ecx
lea eax, [edx + edi + 2]
push eax
call fcn.00494f10
mov eax, dword [0x519e30]
movzx edx, word [eax + 0x2c]
mov eax, dword [eax + 0x1e637]
lea ecx, [ebp - 0x38]
push ecx
push edx
lea ecx, [eax + edi + 2]
push ecx
call fcn.0048e520
mov edx, dword [0x519e30]
mov eax, dword [edx + 0x1e637]
mov cx, word [ebp - 0x38]
add dword [ebp - 0x3c], 0x2a2a
add dword [ebp - 0x40], 0x15
mov word [edi + eax], cx
mov ecx, dword [0x519e30]
movzx edx, word [ecx + 0x28]
inc ebx
add esp, 0x24
add esi, 0x200
add edi, 0x202
mov dword [ebp - 0x48], ebx
cmp ebx, edx
jb 0x490ce0
xor eax, eax
xor edi, edi
xor ebx, ebx
cmp ax, word [ecx + 0x2a]
jae 0x490e7d
movzx eax, word [ecx + 0x28]
xor esi, esi
mov dword [ebp - 0x3c], esi
xor edx, edx
test eax, eax
je 0x490e68
mov edi, edi
mov eax, dword [ecx + 0x1e63b]
mov cx, word [esi + ecx + 0x1e63f]
mov word [eax + edi*2], cx
mov ecx, dword [0x519e30]
movzx eax, word [ecx + 0x28]
inc edx
inc edi
add esi, 0x2a2a
cmp edx, eax
jb 0x490e40
mov esi, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x2a]
inc ebx
add esi, 0x202
mov dword [ebp - 0x3c], esi
cmp ebx, edx
jb 0x490e38
movzx esi, word [ecx + 0x28]
xor edx, edx
xor eax, eax
test esi, esi
je 0x490e99
lea esp, [esp]
add edx, dword [ebp + eax*4 - 0x30]
inc eax
cmp eax, esi
jb 0x490e90
mov word [ecx + 0x1e631], dx
mov eax, dword [0x519e30]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x1e633], ecx
call fcn.0048fda0
mov eax, dword [0x519e30]
inc dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493f43
mov esp, ebp
pop ebp
ret